jipiboily / spree_multi_lingual

Spree multi-lingual is a plugin to make multi locale store with Spree possible
BSD 3-Clause "New" or "Revised" License
49 stars 56 forks source link

undefined method `I18n' #10

Closed lafeber closed 12 years ago

lafeber commented 12 years ago

When I put config.I18n.fallbacks = true in config/application.rb I get the error:

/Users/martijnlafeber/.rvm/gems/ruby-1.9.3-p0@ladress-spree/gems/railties-3.1.3/lib/rails/railtie/configuration.rb:78:in `method_missing': undefined method `I18n' for #<Rails::Application::Configuration:0x007fb11ea417b8> (NoMethodError)

When I leave it out and try to load a product for which there aren't any translations, I get a Product for which all the fields that could be translated are nil.

lafeber commented 12 years ago

Rails.application.config.i18n.fallbacks = true works.