Flowdock
method

dup

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: Parameters

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

These similar methods exist in v5.2.3:

dup() public

Returns an exact copy of the ActionController::Parameters instance. permitted state is kept on the duped object.

params = ActionController::Parameters.new(a: 1)
params.permit!
params.permitted?        # => true
copy_params = params.dup # => {"a"=>1}
copy_params.permitted?   # => true
Show source
Register or log in to add new notes.