Class: ActiveModelSerializers::Adapter::Null

Inherits:
Base
  • Object
show all
Defined in:
lib/active_model_serializers/adapter/null.rb

Direct Known Subclasses

ActiveModel::Serializer::Adapter::Null

Instance Attribute Summary

Attributes inherited from Base

#instance_options, #serializer

Instance Method Summary collapse

Methods inherited from Base

#as_json, #cache_key, cache_key, default_key_transform, #fragment_cache, fragment_cache, inherited, #initialize, transform, transform_key_casing!

Constructor Details

This class inherits a constructor from ActiveModelSerializers::Adapter::Base

Instance Method Details

#serializable_hashObject



6
7
8
# File 'lib/active_model_serializers/adapter/null.rb', line 6

def serializable_hash(*)
  {}
end