[openstreetmap/openstreetmap-website] Further refactoring to avoid @user (#1595)
Andy Allan
notifications at github.com
Thu Jul 27 09:33:13 UTC 2017
gravitystorm commented on this pull request.
> @@ -47,7 +49,7 @@ def require_user
end
def require_oauth
- @oauth = @user.access_token(OAUTH_KEY) if @user && defined? OAUTH_KEY
+ @oauth = @user.access_token(OAUTH_KEY) if current_user && defined? OAUTH_KEY
Oh dear, I really thought I'd found them all!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1595#discussion_r129794606
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170727/df720add/attachment.html>
More information about the rails-dev
mailing list