mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Remove SerializerSupport
This commit is contained in:
@@ -5,6 +5,10 @@ module ActiveModel
|
||||
base._attributes = {}
|
||||
end
|
||||
|
||||
def serializer_for(resource)
|
||||
"#{resource.class.name}Serializer".safe_constantize
|
||||
end
|
||||
|
||||
attr_accessor :_root, :_attributes
|
||||
|
||||
def root(root)
|
||||
|
||||
Reference in New Issue
Block a user