single_user_mode? always returns boolean (#3215)
This change also adds a specification for the method.
This commit is contained in:
1 parent
84608c3ff8
commit
aa662cecad
2 files changed
+25
-1
No files matched your search
@@ -61,7 +61,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def single_user_mode?
|
||||
@single_user_mode ||= Rails.configuration.x.single_user_mode && Account.first
|
||||
@single_user_mode ||= Rails.configuration.x.single_user_mode && Account.any?
|
||||
end
|
||||
|
||||
def current_account
|
||||
|
||||
Reference in new issue
Block a user