Sha256: 7be112cf668a1bd3fc8023fbed2e09d59a7b2d16f26347cff3b23335811c9337

Contents?: true

Size: 773 Bytes

Versions: 26

Compression:

Stored size: 773 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

  def new
    authorize! :new, Office::LeadActionTemplate
    @tmpl = ::Office::LeadActionTemplate.new
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ish_manager-0.1.8.513 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.512 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.511 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.510 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.509 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.508 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.507 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.506 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.505 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.504 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.503 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.500 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.499 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.498 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.497 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.496 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.495 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.494 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.493 app/controllers/ish_manager/lead_action_templates_controller.rb
ish_manager-0.1.8.492 app/controllers/ish_manager/lead_action_templates_controller.rb