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