lib/authlogic-connect.rb in authlogic-connect-0.0.4.06 vs lib/authlogic-connect.rb in authlogic-connect-0.0.5
- old
+ new
@@ -22,6 +22,17 @@
custom_models += Dir["#{library}/openid/tokens"]
custom_models.each do |path|
$LOAD_PATH << path
ActiveSupport::Dependencies.load_paths << path
+end
+
+# Rails 3beta4 backport
+if defined?(ActiveSupport::HashWithIndifferentAccess)
+ ActiveSupport::HashWithIndifferentAccess.class_eval do
+ unless defined?(:symbolize_keys!)
+ def symbolize_keys!
+ symbolize_keys
+ end
+ end
+ end
end
\ No newline at end of file