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