Module: ActiveModel::Serializer::Type::ClassMethods
- Defined in:
- lib/active_model/serializer/type.rb
Instance Method Summary (collapse)
-
- (Object) type(type)
Set the JSON API type of a serializer.
Instance Method Details
- (Object) type(type)
Set the JSON API type of a serializer.
19 20 21 |
# File 'lib/active_model/serializer/type.rb', line 19 def type(type) self._type = type && type.to_s end |