lib/refinery/i18n.rb in refinerycms-i18n-0.9.9.14 vs lib/refinery/i18n.rb in refinerycms-i18n-0.9.9.15

- old
+ new

@@ -19,9 +19,13 @@ app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public" end config.to_prepare do ::ApplicationController.class_eval do + before_filter lambda {|c| + ::SimplesIdeias::I18n.export! if Rails.env.development? + } + def default_url_options(options={}) ::Refinery::I18n.enabled? ? { :locale => ::I18n.locale } : {} end def find_or_set_locale