module JSONAPI::Serializer::ClassMethods
Public Instance Methods
serialize(object, options = {})
click to toggle source
# File lib/jsonapi-serializers/serializer.rb, line 15 def serialize(object, options = {}) # Since this is being called on the class directly and not the module, override the # serializer option to be the current class. options[:serializer] = self JSONAPI::Serializer.serialize(object, options) end