]> cat aescling's git repositories - mastodon.git/commitdiff
Change "Account.any?" to "Account.exists?" (#3217)
authorYamagishi Kazutoshi <ykzts@desire.sh>
Mon, 22 May 2017 13:02:30 +0000 (22:02 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 22 May 2017 13:02:30 +0000 (15:02 +0200)
app/controllers/application_controller.rb

index 5267489e87f70e8e715c9cd39f756c1bb95a823f..5037bbe8a6371ab2b50cc792f7e26754aba7c471 100644 (file)
@@ -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