Sha256: 2b2eb075b3d893314dcc9dcf18490833ed1f4e1b2423db4bcc031e47e43e03f4
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
module LesliAudit class AnalyticsController < ApplicationController # GET /analytics def index end def visitors respond_with_successful(AnalyticService.new(current_user, query).visitors) end def resourcess respond_with_successful(AnalyticService.new(current_user, query).resourcess) end def users respond_with_successful(AnalyticService.new(current_user, query).users) end def devices respond_with_successful(AnalyticService.new(current_user, query).devices) end def controllers respond_with_successful(AnalyticService.new(current_user, query).controllers) end private # Use callbacks to share common setup or constraints between actions. def set_analytic end # Only allow a list of trusted parameters through. def analytic_params params.fetch(:analytic, {}) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lesli_audit-0.2.0 | app/controllers/lesli_audit/analytics_controller.rb |