Sha256: b248119f957efac389601b45ba6c708aba027a7486496db4ea4542f415ca2d70
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.2 | lib/active_model_serializers/adapter/attributes.rb |
active_model_serializers-0.10.1 | lib/active_model_serializers/adapter/attributes.rb |