forked from treehouse/mastodon
Change "Account.any?" to "Account.exists?" (#3217)
parent
fbbd80b40b
commit
73e4468ff3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue