Class: E9Crm::CampaignsController
- Inherits:
-
ResourcesController
- Object
- AdminController
- BaseController
- ResourcesController
- E9Crm::CampaignsController
- Includes:
- E9Rails::Controllers::Orderable
- Defined in:
- app/controllers/e9_crm/campaigns_controller.rb
Instance Method Summary collapse
-
#reports ⇒ Object
Reports.
Methods inherited from ResourcesController
Instance Method Details
#reports ⇒ Object
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 |