class
Orion::Controller::ParamHelpers::ParamsHash
- Orion::Controller::ParamHelpers::ParamsHash
- Reference
- Object
Overview
Strong parameters support
Defined in:
orion/controller/param_helpers.crConstructors
Instance Method Summary
-
#[](key : String | Symbol) : String
Get parameter value
- #[]?(key : String | Symbol) : String | Nil
-
#get(key : String | Symbol, type : T.class) : T forall T
Get parameter as specific type
-
#has_key?(key : String | Symbol) : Bool
Check if parameter exists
-
#keys : Array(String)
Get all parameter keys
-
#permit(*keys : String | Symbol) : Hash(String, String)
Strong parameters - permit specific keys
-
#require(key : String | Symbol) : StrongParams
Strong parameters - require specific key
-
#to_h : Hash(String, String)
Convert to hash
Constructor Detail
Instance Method Detail
def permit(*keys : String | Symbol) : Hash(String, String)
#
Strong parameters - permit specific keys