Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.2.1) is shown here.
container(key, klass)
private
# File actionpack/lib/action_controller/request.rb, line 795
def container(key, klass)
type_conflict! klass, top[key] if top.is_a?(Hash) && top.key?(key) && ! top[key].is_a?(klass)
value = bind(key, klass.new)
type_conflict! klass, value unless value.is_a?(klass)
push(value)
end