Class: ActiveModel::Serializer::Adapter::Null
- Inherits:
-
ActiveModelSerializers::Adapter::Null
- Object
- ActiveModelSerializers::Adapter::Base
- ActiveModelSerializers::Adapter::Null
- ActiveModel::Serializer::Adapter::Null
- Extended by:
- ActiveModelSerializers::Deprecate
- Defined in:
- lib/active_model/serializer/adapter/null.rb
Instance Attribute Summary
Attributes inherited from ActiveModelSerializers::Adapter::Base
#instance_options, #serializer
Instance Method Summary collapse
-
#initialize(serializer, options = {}) ⇒ Null
constructor
A new instance of Null.
Methods included from ActiveModelSerializers::Deprecate
delegate_and_deprecate, deprecate
Methods inherited from ActiveModelSerializers::Adapter::Null
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 = {}) ⇒ Null
Returns a new instance of Null.
7 8 9 |
# File 'lib/active_model/serializer/adapter/null.rb', line 7 def initialize(serializer, = {}) super(ActiveModelSerializers::Adapter::Null.new(serializer, )) end |