From: Yamagishi Kazutoshi Date: Mon, 22 May 2017 13:02:30 +0000 (+0900) Subject: Change "Account.any?" to "Account.exists?" (#3217) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=73e4468ff31337d1a0afdc70e1717cb5cfae2e82;p=mastodon.git Change "Account.any?" to "Account.exists?" (#3217) --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 5267489e8..5037bbe8a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -61,7 +61,7 @@ class ApplicationController < ActionController::Base end def single_user_mode? - @single_user_mode ||= Rails.configuration.x.single_user_mode && Account.any? + @single_user_mode ||= Rails.configuration.x.single_user_mode && Account.exists? end def current_account