Class: ActiveAnalytics::BrowsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ActiveAnalytics::BrowsersController
- Defined in:
- app/controllers/active_analytics/browsers_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/active_analytics/browsers_controller.rb', line 5 def index @histogram = Histogram.new(current_browsers_per_days.order_by_date.group_by_date, from_date, to_date) @previous_histogram = Histogram.new(previous_browsers_per_days.order_by_date.group_by_date, previous_from_date, previous_to_date) @browsers = current_browsers_per_days.group_by_name.top(100) end |
#show ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/active_analytics/browsers_controller.rb', line 11 def show @histogram = Histogram.new(current_browsers_per_days.order_by_date.group_by_date, from_date, to_date) @previous_histogram = Histogram.new(previous_browsers_per_days.order_by_date.group_by_date, previous_from_date, previous_to_date) @browsers = current_browsers_per_days.group_by_version.top(100) end |