Class: ActiveModel::Serializer::Adapter::Null

Inherits:
ActiveModel::Serializer::Adapter show all
Defined in:
lib/active_model/serializer/adapter/null.rb

Constant Summary

Constants inherited from ActiveModel::Serializer::Adapter

UnknownAdapterError

Instance Attribute Summary

Attributes inherited from ActiveModel::Serializer::Adapter

#serializer

Instance Method Summary collapse

Methods inherited from ActiveModel::Serializer::Adapter

adapter_class, adapter_map, adapters, #as_json, create, find_by_name, #fragment_cache, inherited, #initialize, lookup, register

Constructor Details

This class inherits a constructor from ActiveModel::Serializer::Adapter

Instance Method Details

#serializable_hash(options = nil) ⇒ Object



2
3
4
# File 'lib/active_model/serializer/adapter/null.rb', line 2

def serializable_hash(options = nil)
  {}
end