Class: LesliAudit::AnalyticsController
- Inherits:
-
ApplicationController
- Object
- Lesli::ApplicationLesliController
- ApplicationController
- LesliAudit::AnalyticsController
- Defined in:
- app/controllers/lesli_audit/analytics_controller.rb
Instance Method Summary collapse
- #devices ⇒ Object
-
#index ⇒ Object
GET /analytics.
Instance Method Details
#devices ⇒ Object
11 12 13 |
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 11 def devices respond_with_successful(AnalyticService.new(current_user, query).devices) end |
#index ⇒ Object
GET /analytics
5 6 7 8 9 |
# File 'app/controllers/lesli_audit/analytics_controller.rb', line 5 def index @visitors = respond_as_successful(AnalyticService.new(current_user, query).visitors) @controllers = respond_as_successful(AnalyticService.new(current_user, query).controllers) @users = respond_as_successful(AnalyticService.new(current_user, query).users) end |