instance method
inherited
Ruby on Rails 4.1.16
Since v3.1.12 Last seen in v4.2.9Signature
inherited(klass)
Sets the default wrapper key or model which will be used to determine wrapper key and attribute names. Will be called automatically when the module is inherited.
Parameters
-
klassreq
Source
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 220
def inherited(klass)
if klass._wrapper_options.format.any?
params = klass._wrapper_options.dup
params.klass = klass
klass._wrapper_options = params
end
super
end
Defined in actionpack/lib/action_controller/metal/params_wrapper.rb line 220
· View on GitHub
· Improve this page
· Find usages on GitHub