Check current_user for nil, as this dialog is included at a higher level than originally expected.
This commit is contained in:
parent
34695c716b
commit
cbb1a71ffa
|
|
@ -1,4 +1,4 @@
|
|||
-google_auth = JamRuby::UserAuthorization.google_auth(current_user).first
|
||||
-google_auth = (current_user.nil?) ? nil : JamRuby::UserAuthorization.google_auth(current_user).first
|
||||
-if google_auth
|
||||
span.signed_in_to_google="(Signed in)"
|
||||
-else
|
||||
|
|
|
|||
Loading…
Reference in New Issue