Sha256: 45b7b8fed6b2c4bbfaebcf7dc61c677867af55cf46d7540450474f04d5e5e07a

Contents?: true

Size: 491 Bytes

Versions: 20

Compression:

Stored size: 491 Bytes

Contents

class E9Crm::CampaignSubclassController < E9Crm::ResourcesController

  def update
    update! { parent_redirect_path }
  end

  def create
    create! { parent_redirect_path }
  end

  protected

    def parent_redirect_path
      campaigns_path(:type => type_param)
    end

    def type_param
      resource_class.name[/(.*)Campaign/, 1].underscore rescue nil
    end

    def add_index_breadcrumb
      add_breadcrumb! Campaign.model_name.collection.titleize, campaigns_path
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.33 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.32 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.31 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.30 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.29 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.28 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.27 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.26 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.25 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.24 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.23 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.22 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.21 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.20 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.19 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.18 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.17 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.16 app/controllers/e9_crm/campaign_subclass_controller.rb
e9_crm-0.1.14 app/controllers/e9_crm/campaign_subclass_controller.rb