`<top (required)>': undefined method `init' for Rails:Module (NoMethodError)
dcalixto opened this issue · comments
/config/initializers/configatron.rb:2: warning: toplevel constant Rails referenced by Configatron::Rails
initializer:
require 'configatron'
Configatron::Rails.init
We renamespaced Configatron::Rails
as Configatron::Integrations::Rails
— try that instead. Does that work?
thank you very much for your asnwer gdb! but now
`<top (required)>': uninitialized constant Configatron::Integrations (NameError)
and i'm using the 3.2.17 rails version
right problem solved! just added require 'configatron' on application.rb
I've just cut a new release that includes the Rails integration by default. Does it work for you?
so can i delete the
require 'configatron' from the application.rb and from configatron initializer and the Configatron::Integrations::Rails?
I would just leave it — if it's working for you as-is, that's fine. (The initializer should include configatron for you.)