module ParamsPurifier::Purifiable

Public Instance Methods

purified_params() click to toggle source
# File lib/params_purifier/purifiable.rb, line 7
def purified_params
  if respond_to? :params, true
    ActionController::Parameters.new(Purification.execute(params))
  else
    raise ParamsMethodNotImplementedError.new("Interface must implement #params method")
  end
end