module Utils::Responders
Defined in:
controllers/utilities/responders.crInstance Method Summary
-
#restrict_attributes(model, only : Array(String) | Nil = nil, except : Array(String) | Nil = nil, fields : Hash | Nil = nil) : Hash
Restrict model attributes
-
#with_fields(model, fields) : Hash
Merge fields into object
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