method
from_hash
v8.0.0 -
Show latest stable
- Class:
ActionController::ParamsWrapper::Options
from_hash(hash)public
No documentation available.
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 89
def self.from_hash(hash)
name = hash[:name]
format = Array(hash[:format])
include = hash[:include] && Array(hash[:include]).collect(&:to_s)
exclude = hash[:exclude] && Array(hash[:exclude]).collect(&:to_s)
new name, format, include, exclude, nil, nil
end