Class: ActiveInsights::RpmController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActiveInsights::RpmController
- Defined in:
- app/controllers/active_insights/rpm_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/active_insights/rpm_controller.rb', line 5 def index @minutes = base_request_scope.minute_by_minute.select("COUNT(id) AS rpm"). select_started_at.map do |minute| [minute.started_at.strftime("%-l:%M%P"), minute.rpm] end end |
#redirection ⇒ Object
13 14 15 |
# File 'app/controllers/active_insights/rpm_controller.rb', line 13 def redirection redirect_to rpm_path(params[:date]) end |