instance method deconstruct_keys

Ruby on Rails edge

Since edge

Signature

deconstruct_keys(keys)

No documentation comment.

Parameters

keys req
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 321
    def deconstruct_keys(keys)
      params = keys ? slice(*keys) : self
      params.each.with_object({}) { |(key, value), hash| hash.merge!(key.to_sym => value) }
    end

Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 321 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Parameters

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close