mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +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
|
hash
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_attribute_for_serialization(name)
|
alias :read_attribute_for_serialization :send
|
||||||
send name
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -34,3 +34,7 @@ ActiveSupport::TestCase.class_eval do
|
|||||||
@routes = ::TestHelper::Routes
|
@routes = ::TestHelper::Routes
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class Object
|
||||||
|
undef_method :id if respond_to?(:id)
|
||||||
|
end
|
||||||
Loading…
Reference in New Issue
Block a user