module GardenVariety::NewAction

Public Instance Methods

new() click to toggle source

Garden variety controller new action. @return [void]

# File lib/garden_variety/actions.rb, line 25
def new
  self.model = (model = authorize(new_model))
  assign_attributes(model) if params.key?(self.class.model_name.param_key)
end