Method: ActionController::Parameters.hook_into_yaml_loading
- Defined in:
- lib/action_controller/metal/strong_parameters.rb
.hook_into_yaml_loading ⇒ Object
:nodoc:
1059 1060 1061 1062 1063 1064 1065 |
# File 'lib/action_controller/metal/strong_parameters.rb', line 1059 def self.hook_into_yaml_loading # :nodoc: # Wire up YAML format compatibility with Rails 4.2 and Psych 2.0.8 and 2.0.9+. # Makes the YAML parser call `init_with` when it encounters the keys below # instead of trying its own parsing routines. YAML.["!ruby/hash-with-ivars:ActionController::Parameters"] = name YAML.["!ruby/hash:ActionController::Parameters"] = name end |