Module: JSONAPI::Serializer::ClassMethods
- Defined in:
- lib/jsonapi-serializers/serializer.rb
Instance Method Summary collapse
Instance Method Details
#serialize(object, options = {}) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/jsonapi-serializers/serializer.rb', line 15 def serialize(object, = {}) # Since this is being called on the class directly and not the module, override the # serializer option to be the current class. [:serializer] = self JSONAPI::Serializer.serialize(object, ) end |