lib/active_ldap/railtie.rb in activeldap-7.2.0 vs lib/active_ldap/railtie.rb in activeldap-7.2.1

- old
+ new

@@ -5,10 +5,10 @@ Locale.init(:driver => :cgi) module ActiveLdap class Railtie < Rails::Railtie initializer "active_ldap.deprecator", before: :load_environment_config do |app| - app.deprecators[:active_ldap] = ActiveLdap.deprecator + app.deprecators[:active_ldap] = ActiveLdap.deprecator if app.respond_to?(:deprecators) end initializer "active_ldap.setup_connection" do ldap_configuration_file = Rails.root.join('config', 'ldap.yml') if File.exist?(ldap_configuration_file)