refactors stats and optimizes js

JS libraries for stats (d3, c3, etc.) only load now when needed (stats/show)
This commit is contained in:
Juanjo Bazán
2015-09-23 19:37:24 +02:00
parent 7b9c050df2
commit 8c99c6a5f0
10 changed files with 47 additions and 24 deletions

View File

@@ -0,0 +1,7 @@
class Admin::StatsController < Admin::BaseController
def show
@event_types = Ahoy::Event.group(:name).count
end
end