Sha256: a9cf202f916bfb3ebd5c366aaabf92cbeb7e25ae2a5cc242c97b3bf6334aea23

Contents?: true

Size: 662 Bytes

Versions: 17

Compression:

Stored size: 662 Bytes

Contents

class IshManager::LeadActionTemplatesController < IshManager::ApplicationController

  def create
    authorize! :create, Office::LeadActionTemplate
    @tmpl = ::Office::LeadActionTemplate.new params[:tmpl].permit!
    if @tmpl.save
      flash_notice 'saved'
    else
      flash_alert "cannot save: #{@tmpl.errors.full_messages.join(', ')}."
    end
    redirect_to action: :index
  end

  def edit
    @tmpl = Office::LeadActionTemplate.find params[:id]
    authorize! :edit, @tmpl
  end

  def index
    authorize! :index, Office::LeadActionTemplate
    @tmpls = ::Office::LeadActionTemplate.all
    @new_lat = ::Office::LeadActionTemplate.new
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ish_manager-0.1.8.485 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.484 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.483 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.482 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.481 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.480 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.479 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.478 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.477 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.476 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.475 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.474 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.473 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.472 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.471 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.470 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.469 app/controllers/ish_manager/lead_action_templates_controller.rb