lib/action_controller/permitter.rb
# 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 permit(*args)
        options = args.extract_options!
        args.each do |name|
          self.permitted_attributes += [ActionController::PermitterAttribute.new(name, options)]
        end
      end
def permit ( * args ) options = args . extract_options! args . each do | name | self . permitted_attributes += [ ActionController :: PermitterAttribute . new ( name , options ) ] 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 .
args