mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Serializer should be available wiithing adapter to inspect attributes and assotions
This commit is contained in:
@@ -5,8 +5,10 @@ module ActiveModel
|
||||
autoload :SimpleAdapter
|
||||
autoload :NullAdapter
|
||||
|
||||
attr_reader :serializer
|
||||
|
||||
def initialize(serializer)
|
||||
@attributes = serializer.attributes
|
||||
@serializer = serializer
|
||||
end
|
||||
|
||||
def serializable_hash(options = {})
|
||||
|
||||
Reference in New Issue
Block a user