Browse Source

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

closed-social-glitch-2
Yamagishi Kazutoshi 7 years ago
committed by Eugen Rochko
parent
commit
73e4468ff3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/application_controller.rb

+ 1
- 1
app/controllers/application_controller.rb View File

@ -61,7 +61,7 @@ class ApplicationController < ActionController::Base
end end
def single_user_mode? 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 end
def current_account def current_account

Loading…
Cancel
Save