lib/authlogic-connect.rb in authlogic-connect-0.0.5.1 vs lib/authlogic-connect.rb in authlogic-connect-0.0.6
- old
+ new
@@ -19,12 +19,15 @@
custom_models = ["#{library}/access_token"]
custom_models += Dir["#{library}/oauth/tokens"]
custom_models += Dir["#{library}/openid/tokens"]
+# Rails 3/2 config
+load_path_method = ActiveSupport::Dependencies.respond_to?(:autoload_paths) ? :autoload_paths : :load_paths
+
custom_models.each do |path|
$LOAD_PATH << path
- ActiveSupport::Dependencies.load_paths << path
+ ActiveSupport::Dependencies.send(load_path_method) << path
end
# Rails 3beta4 backport
if defined?(ActiveSupport::HashWithIndifferentAccess)
ActiveSupport::HashWithIndifferentAccess.class_eval do
\ No newline at end of file