instance method inherited

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v4.2.9

Available in: v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9

Signature

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

klass req
Source
# File actionpack/lib/action_controller/metal/params_wrapper.rb, line 126
      def inherited(klass)
        if klass._wrapper_options[:format].present?
          klass._set_wrapper_defaults(klass._wrapper_options.slice(:format))
        end
        super
      end

Defined in actionpack/lib/action_controller/metal/params_wrapper.rb line 126 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::ParamsWrapper::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close