Implement basic statistics
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
class StatisticsController < ApplicationController
|
||||
include StatisticsHelper
|
||||
|
||||
def policy_class
|
||||
StatisticsPolicy
|
||||
@ -6,6 +7,10 @@ class StatisticsController < ApplicationController
|
||||
|
||||
def show
|
||||
authorize self
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json { render(json: statistics_data) }
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user