method

extract!

Importance_1
v4.2.7 - Show latest stable - 0 notes - Class: Parameters
extract!(*keys) public

Removes and returns the key/value pairs matching the given keys.

params = ActionController::Parameters.new(a: 1, b: 2, c: 3)
params.extract!(:a, :b) # => {"a"=>1, "b"=>2}
params                  # => {"c"=>3}
Show source
Register or log in to add new notes.