mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06: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
|
||||
self.class.active_model_serializer
|
||||
end
|
||||
|
||||
alias :read_attribute_for_serialization :send
|
||||
end
|
||||
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user