mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
There's no need to define read_attribute_for_serialization in the Serializer class
This commit is contained in:
parent
b9a6dfac2f
commit
91f9317713
@ -99,8 +99,6 @@ module ActiveModel
|
|||||||
attr_accessor :object, :scope, :meta_key, :meta
|
attr_accessor :object, :scope, :meta_key, :meta
|
||||||
attr_reader :root
|
attr_reader :root
|
||||||
|
|
||||||
alias read_attribute_for_serialization send
|
|
||||||
|
|
||||||
def root=(root)
|
def root=(root)
|
||||||
@root = root
|
@root = root
|
||||||
@root = self.class._root if @root.nil?
|
@root = self.class._root if @root.nil?
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user