Class: E9Crm::CampaignsController

Inherits:
ResourcesController show all
Includes:
E9Rails::Controllers::Orderable
Defined in:
app/controllers/e9_crm/campaigns_controller.rb

Instance Method Summary collapse

Methods inherited from ResourcesController

#create, defaults, #update

Instance Method Details

#reportsObject

Reports



25
26
27
28
29
30
31
# File 'app/controllers/e9_crm/campaigns_controller.rb', line 25

has_scope :reports, :only => :reports, :default => 'true' do |controller, scope, _|
  if (args = controller.params.values_at(:from, :until)).any?
    scope.reports(*args)
  else
    scope.reports
  end
end