X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/39b60219fe37d1e3f94555a053895adc1eee179c..c8e21c409c9bec446f0caa2526d5b07861bb3299:/app/helpers/application_helper.rb?ds=inline diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5f36e262b..2c8b00c17 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -79,11 +79,11 @@ module ApplicationHelper data[:location] = session[:location] if session[:location] - if @oauth - data[:token] = @oauth.token - data[:token_secret] = @oauth.secret - data[:consumer_key] = @oauth.client_application.key - data[:consumer_secret] = @oauth.client_application.secret + if oauth_token + data[:token] = oauth_token.token + data[:token_secret] = oauth_token.secret + data[:consumer_key] = oauth_token.client_application.key + data[:consumer_secret] = oauth_token.client_application.secret end data