lib/action_controller/permitter.rb
def inherited(subclass)
        subclass.class_eval do
          class_attribute :permitted_attributes, :resource_name_override
          private_class_method :resource_name_override, :resource_name_override=

          self.permitted_attributes = []
        end
      end
# When Permitter is inherited, it sets the resource (the symbol for params.require(some_sym)) to the unnamespaced model class that corresponds
# to the Permitter's classname, e.g. by default A::B::ApplesController will use A::B::ApplePermitter which will do params.permit(:apple).
# To change this value, use the `resource` class method.
When Permitter is inherited, it sets the resource (the symbol for params.require(some_sym)) to the unnamespaced model class that corresponds
to the Permitter's classname, e.g.
When Permitter is inherited it sets the resource ( the symbol for params . require ( some_sym )) to the unnamespaced model class that corresponds to the Permitter ' s classname e . g .
def inherited(subclass)
        subclass.class_eval do
          class_attribute :permitted_attributes, :resource_name_override
          private_class_method :resource_name_override, :resource_name_override=
          self.permitted_attributes = []
        end
      end
def inherited ( subclass ) subclass . class_eval do class_attribute :permitted_attributes , :resource_name_override private_class_method :resource_name_override , :resource_name_override= self . permitted_attributes = [ ] end end
When Permitter is inherited, it sets the resource (the symbol for params.require(some_sym)) to the unnamespaced model class that corresponds
to the Permitter's classname, e.g.
When Permitter is inherited it sets the resource ( the symbol for params . require ( some_sym )) to the unnamespaced model class that corresponds to the Permitter ' s classname e . g .
subclass