refactors stats page

This commit is contained in:
rgarcia
2015-09-10 11:03:48 +02:00
parent 9360c0090e
commit a8edad2ab6
2 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ class StatsController < ApplicationController
skip_authorization_check
def show
@event_types = Ahoy::Event.select(:name).uniq.pluck(:name)
@event_types = Ahoy::Event.group(:name).count
end
private