Module: ActiveModel::Serializer::Meta::ClassMethods
- Defined in:
- lib/active_model/serializer/concerns/meta.rb
Instance Method Summary collapse
-
#meta(value = nil, &block) ⇒ Object
Set the JSON API meta attribute of a serializer.
Instance Method Details
#meta(value = nil, &block) ⇒ Object
Set the JSON API meta attribute of a serializer.
23 24 25 |
# File 'lib/active_model/serializer/concerns/meta.rb', line 23 def (value = nil, &block) self. = block || value end |