Fix unclear syntax on about page
This commit is contained in:
parent
eacceb32b0
commit
0402739e2c
|
@ -4,10 +4,10 @@ class AboutController < ApplicationController
|
||||||
def index; end
|
def index; end
|
||||||
|
|
||||||
def about
|
def about
|
||||||
@users = Rails.cache.fetch "about_count_users", expires_in: 1.hour { user_count - current_ban_count }
|
@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) }
|
@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) }
|
@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) }
|
@comments = Rails.cache.fetch("about_count_comments", expires_in: 1.hour) { Comment.count(:id) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def privacy_policy; end
|
def privacy_policy; end
|
||||||
|
|
Loading…
Reference in New Issue