Sha256: 5f63fa3d7c4cfeabccfabc2697d09803511c0a10b561ca7507b206a5db5d5588
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
module ActiveModel class Serializer module Configuration include ActiveSupport::Configurable extend ActiveSupport::Concern # Configuration options may also be set in # Serializers and Adapters included do |base| config = base.config config.collection_serializer = ActiveModel::Serializer::CollectionSerializer config.serializer_lookup_enabled = true def config.array_serializer=(collection_serializer) self.collection_serializer = collection_serializer end def config.array_serializer collection_serializer end config.adapter = :attributes config.jsonapi_resource_type = :plural config.schema_path = 'test/support/schemas' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc4 | lib/active_model/serializer/configuration.rb |