logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 73e4468ff31337d1a0afdc70e1717cb5cfae2e82
parent: fbbd80b40b070471da844c2858239dca4ed37556
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date:   Mon, 22 May 2017 22:02:30 +0900

Change "Account.any?" to "Account.exists?" (#3217)


Diffstat:

Mapp/controllers/application_controller.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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