mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Add inline syntax for defining associations
Adapted from https://github.com/rails-api/active_model_serializers/pull/1262
This commit is contained in:
committed by
Benjamin Fleischer
parent
6020450fe4
commit
7cbef1b3b5
@@ -69,7 +69,7 @@ module ActiveModel
|
||||
serializer.class_attribute :_cache_digest # @api private : Generated
|
||||
end
|
||||
|
||||
# Serializers inherit serialized_attributes and _attributes_keys.
|
||||
# Serializers inherit serialized_attributes, _attributes_keys, and _reflections.
|
||||
# Generates a unique digest for each serializer at load.
|
||||
def self.inherited(base)
|
||||
caller_line = caller.first
|
||||
|
||||
Reference in New Issue
Block a user