mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
Fix the build on 1.8.7 :trollface:
This commit is contained in:
parent
37d894f94e
commit
5beecd5947
@ -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
|
||||
|
||||
|
||||
@ -34,3 +34,7 @@ ActiveSupport::TestCase.class_eval do
|
||||
@routes = ::TestHelper::Routes
|
||||
end
|
||||
end
|
||||
|
||||
class Object
|
||||
undef_method :id if respond_to?(:id)
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user