This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Change "Account.any?" to "Account.exists?" (
#3217
)
closed-social-glitch-2
Yamagishi Kazutoshi
7 years ago
committed by
Eugen Rochko
parent
fbbd80b40b
commit
73e4468ff3
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
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
Write
Preview
Loading…
Cancel
Save