Module: GardenVariety::NewAction

Defined in:
lib/garden_variety/actions.rb

Instance Method Summary collapse

Instance Method Details

#newvoid

This method returns an undefined value.

Garden variety controller new action.



25
26
27
28
# 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