mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
alias send to read_attribute_for_serialization on AMo
This commit is contained in:
parent
3b38af1b49
commit
4efb1f33ab
@ -21,6 +21,8 @@ ActiveModel::Serialization.class_eval do
|
|||||||
def active_model_serializer
|
def active_model_serializer
|
||||||
self.class.active_model_serializer
|
self.class.active_model_serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias :read_attribute_for_serialization :send
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user