class ActiveModel::Serializer
def serializable_object(options={})
def serializable_object(options={}) return nil if object.nil? hash = attributes hash.merge! associations @wrap_in_array ? [hash] : hash end
def serializable_object(options={}) return nil if object.nil? hash = attributes hash.merge! associations @wrap_in_array ? [hash] : hash end