X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/36b0a3d1355fcbac0ab4a121e09a899a7d21a748..99f5d5159542171d5b3549a2cf0f0d801ea5d88b:/app/helpers/application_helper.rb diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index faf538fa9..bb09f3a49 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -58,13 +58,7 @@ module ApplicationHelper end data[:location] = session[:location] if session[:location] - - 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[:oauth_token] = oauth_token.token if oauth_token data end @@ -77,5 +71,7 @@ module ApplicationHelper else flash end + rescue StandardError + flash.inspect if Rails.env.development? end end