Sha256: ceb462370c407cdf52ae322dcf23db56b2d454a0a849e8552de62a71cc76cfd5

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

class E9Crm::DealsController < E9Crm::ResourcesController
  defaults :resource_class => Deal

  filter_access_to :leads, :require => :read, :context => :admin
  prepend_before_filter :set_leads_index_title, :only => :leads

  has_scope :leads, :only => :leads, :default => true
  has_scope :leads, :except => :leads, :default => false

  def leads
    index!
  end

  protected

  def set_leads_index_title
    @index_title = I18n.t(:index_title, :scope => 'e9.e9_crm.leads')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
e9_crm-0.1.1 app/controllers/e9_crm/deals_controller.rb