lib/translations_ennder/rails.rb in translations_ennder-0.9.5 vs lib/translations_ennder/rails.rb in translations_ennder-0.9.6
- old
+ new
@@ -13,12 +13,13 @@
ActionView::Helpers::FormHelper.send :include, ConversionsWithI18nLabel
end
if Rails::VERSION::MAJOR < 3 then
- Rails::Railtie::Configuration.after_initialize do
-# Rails.configuration.after_initialize do
+ Rails.configuration.after_initialize do
+ puts "Railx V2.x.y, init_translations_ennder() dans after_initialize"
init_translations_ennder
end
else
+ puts "Railx V3.x.y, init_translations_ennder()"
init_translations_ennder
end