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

This commit is contained in:
Yamagishi Kazutoshi 2017-05-22 22:02:30 +09:00 committed by Eugen Rochko
parent d316260e92
commit 410a684c3b

View 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