Sha256: f4e168662a9aece0a477da449d494c9fc2bd7380d7aa3156d3c55696defa08fa

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 Bytes

Contents

module ActiveModelSerializers
  module Adapter
    class Attributes < Base
      def serializable_hash(options = nil)
        options = serialization_options(options)
        options[:fields] ||= instance_options[:fields]
        serialized_hash = serializer.serializable_hash(instance_options, options, self)

        self.class.transform_key_casing!(serialized_hash, instance_options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
active_model_serializers-0.10.8 lib/active_model_serializers/adapter/attributes.rb
active_model_serializers-0.10.7 lib/active_model_serializers/adapter/attributes.rb
active_model_serializers-0.10.6 lib/active_model_serializers/adapter/attributes.rb
active_model_serializers-0.10.5 lib/active_model_serializers/adapter/attributes.rb
active_model_serializers-0.10.4 lib/active_model_serializers/adapter/attributes.rb
agi_active_model_serializers-0.10.9 lib/active_model_serializers/adapter/attributes.rb
agi_active_model_serializers-0.10.8 lib/active_model_serializers/adapter/attributes.rb
agi_active_model_serializers-0.10.7 lib/active_model_serializers/adapter/attributes.rb
active_model_serializers-0.10.3 lib/active_model_serializers/adapter/attributes.rb