Method: IshManager::ScheduledEmailActionsController#update

Defined in:
app/controllers/ish_manager/scheduled_email_actions_controller.rb

#updateObject

[View source]

41
42
43
44
45
46
47
48
49
50
51
# File 'app/controllers/ish_manager/scheduled_email_actions_controller.rb', line 41

def update
  @sch = Sch.find params[:id]
  authorize! :update, @sch
  flag = @sch.update_attributes( params[:sch].permit! )
  if flag
    flash[:notice] = "Success."
  else
    flash[:alert] = "No luck: #{@sch.errors.full_messages.join(',')}."
  end
  render action: 'edit'
end