lib/translations_ennder/rails.rb in translations_ennder-1.0.6 vs lib/translations_ennder/rails.rb in translations_ennder-1.0.8

- old
+ new

@@ -14,14 +14,26 @@ end if Rails::VERSION::MAJOR < 3 then Rails.configuration.after_initialize do - Rails.logger.info "gem translations_ennder V#{TranslationsEnnder.version}, Railx V2.x.y, init_translations_ennder() dans after_initialize" + _info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V2.x.y, init_translations_ennder() dans after_initialize" + if !Rails.configuration.logger.nil? + Rails.configuration.logger.info _info + else + puts _info + end + init_translations_ennder end else - Rails.logger.info "gem translations_ennder V#{TranslationsEnnder.version}, Railx V3.x.y, init_translations_ennder()" + _info = "gem translations_ennder V#{TranslationsEnnder.version}, Railx V3.x.y, init_translations_ennder()" + if !Rails.configuration.logger.nil? + Rails.configuration.logger.info _info + else + puts _info + end + init_translations_ennder end module ActionController