How do I read my Rails application’s default_locale from inside a gem? I’m running Rails 3.2.6 on REE 1.8.7
This isn’t working for me:
module MyModule
class Railtie < Rails::Railtie
begin
puts "test #{config.i18n.default_locale}"
end
end
end
I had the same problem and I solved it like this: