Method: ActionController::ParameterMissing#corrections
- Defined in:
- actionpack/lib/action_controller/metal/strong_parameters.rb
#corrections ⇒ Object
:nodoc:
37 38 39 |
# File 'actionpack/lib/action_controller/metal/strong_parameters.rb', line 37 def corrections # :nodoc: @corrections ||= DidYouMean::SpellChecker.new(dictionary: keys).correct(param.to_s) end |