From 0402739e2cf7492ef6d7a2f259d02392bbde71c7 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Sun, 19 Feb 2023 18:54:40 +0100 Subject: [PATCH] Fix unclear syntax on about page --- app/controllers/about_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index aee7c475..0b20d1b2 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -4,10 +4,10 @@ class AboutController < ApplicationController def index; end def about - @users = Rails.cache.fetch "about_count_users", expires_in: 1.hour { user_count - current_ban_count } - @questions = Rails.cache.fetch "about_count_questions", expires_in: 1.hour { Question.count(:id) } - @answers = Rails.cache.fetch "about_count_answers", expires_in: 1.hour { Answer.count(:id) } - @comments = Rails.cache.fetch "about_count_comments", expires_in: 1.hour { Comment.count(:id) } + @users = Rails.cache.fetch("about_count_users", expires_in: 1.hour) { user_count - current_ban_count } + @questions = Rails.cache.fetch("about_count_questions", expires_in: 1.hour) { Question.count(:id) } + @answers = Rails.cache.fetch("about_count_answers", expires_in: 1.hour) { Answer.count(:id) } + @comments = Rails.cache.fetch("about_count_comments", expires_in: 1.hour) { Comment.count(:id) } end def privacy_policy; end