diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-05-22 22:02:30 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-22 15:02:30 +0200 |
commit | 73e4468ff31337d1a0afdc70e1717cb5cfae2e82 (patch) | |
tree | 5aac7feb9e1b475de162f2bd0632c6e90441e5c3 | |
parent | fbbd80b40b070471da844c2858239dca4ed37556 (diff) |
Change "Account.any?" to "Account.exists?" (#3217)
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |