Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the build on 1.8.7 :trollface:

  • Loading branch information...
commit 5beecd5947de4b25101a7f2e56e88f93e7b31491 1 parent 37d894f
@josevalim josevalim authored
Showing with 5 additions and 3 deletions.
  1. +1 −3 lib/active_model/serializer.rb
  2. +4 −0 test/test_helper.rb
View
4 lib/active_model/serializer.rb
@@ -504,9 +504,7 @@ def attributes
hash
end
- def read_attribute_for_serialization(name)
- send name
- end
+ alias :read_attribute_for_serialization :send
end
end
View
4 test/test_helper.rb
@@ -34,3 +34,7 @@ module TestHelper
@routes = ::TestHelper::Routes
end
end
+
+class Object
+ undef_method :id if respond_to?(:id)
+end
Please sign in to comment.
Something went wrong with that request. Please try again.