Rail prepend on helper not working when using production environment -


i tried add prepend number_to_currency helper can accept more options. when use on development environment, works right. when use on production environment, not works. tried , looked explanations not it.

code added applicationhelper:

module numbertocurrencywithlocale   def number_to_currency(number, options = {})     if options[:locale]       super(number, {:locale => options[:locale]})     elsif (service = options.delete(:service)) , (locale = service.try(:localizacion).try(:pais).try(:idioma).try(:codigo))       super(number, options.merge({:locale => locale}))     else       super(number, options)     end   end end  actionview::helpers::numberhelper.send(:prepend, numbertocurrencywithlocale) 

i'm using rails 5.0.2 , ruby 2.3.3p222 thank you.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -