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_check, #cached_name, default_key_transform, #fragment_cache, inherited, #initialize, transform, transform_key_casing!

Constructor Details

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

Instance Method Details

- (Object) serializable_hash(_options = nil)

Since options param is not being used, underscored naming of the param



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

def serializable_hash(_options = nil)
  {}
end