Class: ActiveModel::Serializer::Null
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- ActiveModel::Serializer::Null
- Defined in:
- lib/active_model/serializer/null.rb
Constant Summary
Constants inherited from ActiveModel::Serializer
SERIALIZABLE_HASH_VALID_KEYS, UndefinedCacheKey, VERSION
Constants included from Caching
Instance Attribute Summary
Attributes inherited from ActiveModel::Serializer
Instance Method Summary collapse
Methods inherited from ActiveModel::Serializer
_attributes, adapter, #as_json, #associations_hash, attribute, attributes, #attributes_hash, belongs_to, get_serializer_for, has_many, has_one, include_directive_from_options, inherited, #initialize, #json_key, link, meta, #read_attribute_for_serialization, serialization_adapter_instance, serializer_for, serializer_lookup_chain_for, serializers_cache, #success?, type
Methods included from ActiveModelSerializers::Deprecate
delegate_and_deprecate, deprecate
Methods included from Caching
#cache_key, #expand_cache_key, #fetch, #fetch_attributes, #fetch_attributes_fragment, #object_cache_key, #serializer_class
Constructor Details
This class inherits a constructor from ActiveModel::Serializer
Instance Method Details
#associations ⇒ Object
10 11 12 |
# File 'lib/active_model/serializer/null.rb', line 10 def associations(*) {} end |
#attributes ⇒ Object
6 7 8 |
# File 'lib/active_model/serializer/null.rb', line 6 def attributes(*) {} end |
#serializable_hash ⇒ Object
14 15 16 |
# File 'lib/active_model/serializer/null.rb', line 14 def serializable_hash(*) {} end |