Class: ActiveModel::Serializer::Adapter::Base
- Inherits:
-
ActiveModelSerializers::Adapter::Base
- Object
- ActiveModelSerializers::Adapter::Base
- ActiveModel::Serializer::Adapter::Base
- Extended by:
- ActiveModelSerializers::Deprecate
- Defined in:
- lib/active_model/serializer/adapter/base.rb
Instance Attribute Summary
Attributes inherited from ActiveModelSerializers::Adapter::Base
#instance_options, #serializer
Instance Method Summary collapse
-
#initialize(serializer, options = {}) ⇒ Base
constructor
:nocov:.
Methods included from ActiveModelSerializers::Deprecate
delegate_and_deprecate, deprecate
Methods inherited from ActiveModelSerializers::Adapter::Base
#as_json, #cache_key, cache_key, default_key_transform, #fragment_cache, fragment_cache, inherited, #serializable_hash, transform, transform_key_casing!
Constructor Details
#initialize(serializer, options = {}) ⇒ Base
:nocov:
11 12 13 |
# File 'lib/active_model/serializer/adapter/base.rb', line 11 def initialize(serializer, = {}) super(ActiveModelSerializers::Adapter::Base.new(serializer, )) end |