class StaticPagesController < ApplicationController skip_before_action :require_authentication!, only: [:home] def home if signed_in? @user_stats = CDNStatsService.user_stats(current_user) else @global_stats = CDNStatsService.global_stats end end end