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