method

permitted?

Importance_1
v4.2.1 - Show latest stable - 0 notes - Class: Parameters
permitted?() public

Returns true if the parameter is permitted, false otherwise.

params = ActionController::Parameters.new
params.permitted? # => false
params.permit!
params.permitted? # => true
Show source
Register or log in to add new notes.