lib/active_ldap.rb in activeldap-1.0.0 vs lib/active_ldap.rb in activeldap-1.0.1

- old
+ new

@@ -915,15 +915,21 @@ end end require_gem_if_need.call("active_support", "activesupport") -if Dependencies.respond_to?(:load_paths) - Dependencies.load_paths << File.expand_path(File.dirname(__FILE__)) +if ActiveSupport.const_defined?(:Dependencies) + dependencies = ActiveSupport::Dependencies +else + dependencies = Dependencies end +if dependencies.respond_to?(:load_paths) + dependencies.load_paths << File.expand_path(File.dirname(__FILE__)) +end + module ActiveLdap - VERSION = "1.0.0" + VERSION = "1.0.1" end if RUBY_PLATFORM.match('linux') require 'active_ldap/timeout' else