Scaffold user and rfc activity history routes
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
class StatisticsController < ApplicationController
|
||||
include StatisticsHelper
|
||||
|
||||
before_action :authorize!, only: [:show, :graphs, :user_activity, :rfc_activity]
|
||||
before_action :authorize!, only: [:show, :graphs, :user_activity, :user_activity_history, :rfc_activity,
|
||||
:rfc_activity_history]
|
||||
|
||||
def policy_class
|
||||
StatisticsPolicy
|
||||
@ -23,12 +24,18 @@ class StatisticsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
def user_activity_history
|
||||
end
|
||||
|
||||
def rfc_activity
|
||||
respond_to do |format|
|
||||
format.json { render(json: rfc_activity_live_data) }
|
||||
end
|
||||
end
|
||||
|
||||
def rfc_activity_history
|
||||
end
|
||||
|
||||
def authorize!
|
||||
authorize self
|
||||
end
|
||||
|
Reference in New Issue
Block a user