mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
key method is defined on subclasses
This commit is contained in:
parent
2dd0090f13
commit
ea6d712cc8
@ -12,10 +12,6 @@ module ActiveModel
|
|||||||
options[:name] || @name
|
options[:name] || @name
|
||||||
end
|
end
|
||||||
|
|
||||||
def key
|
|
||||||
options[:key] || @name
|
|
||||||
end
|
|
||||||
|
|
||||||
def root
|
def root
|
||||||
options[:root] || @name
|
options[:root] || @name
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user