Fix the build on 1.8.7 :trollface:

This commit is contained in:
José Valim 2012-05-17 19:28:15 +02:00
parent 37d894f94e
commit 5beecd5947
2 changed files with 5 additions and 3 deletions

View File

@ -504,9 +504,7 @@ module ActiveModel
hash
end
def read_attribute_for_serialization(name)
send name
end
alias :read_attribute_for_serialization :send
end
end

View File

@ -34,3 +34,7 @@ ActiveSupport::TestCase.class_eval do
@routes = ::TestHelper::Routes
end
end
class Object
undef_method :id if respond_to?(:id)
end