Let's say I have a helper module like this

module ThingsHelper
  DEFAULT_OPTIONS = { ... }.freeze

  def my_helper(options = {})
    options.reverse_merge!(DEFAULT_OPTIONS)
    ...
  end
end

Then, in development environment, I get 

.../app/helpers/things_helper.rb:2: warning: already initialized 
constant DEFAULT_OPTIONS

Is there anything I can do about this warning?

Michael

-- 
Michael Schuerig
mailto:mich...@schuerig.de
http://www.schuerig.de/michael/

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to