module Utils::Responders

Direct including types

Defined in:

controllers/utilities/responders.cr

Instance Method Summary

Instance Method Detail

def restrict_attributes(model, only : Array(String) | Nil = nil, except : Array(String) | Nil = nil, fields : Hash | Nil = nil) : Hash #

Restrict model attributes


[View source]
def with_fields(model, fields) : Hash #

Merge fields into object


[View source]