mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
12 lines
320 B
Ruby
12 lines
320 B
Ruby
module ActiveModelSerializers
|
|
module Adapter
|
|
class Attributes < Base
|
|
def serializable_hash(options = nil)
|
|
options = serialization_options(options)
|
|
options[:fields] ||= instance_options[:fields]
|
|
serializer.serializable_hash(instance_options, options, self)
|
|
end
|
|
end
|
|
end
|
|
end
|