]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/id.html.erb
Merge remote-tracking branch 'upstream/pull/2177'
[rails.git] / app / views / site / id.html.erb
index c115ea59ff47d5c71596f603585535a8c66453bc..f8d0f5858cc7ab0dc3be3e9bade086b4cd32d69b 100644 (file)
@@ -9,8 +9,8 @@
 </head>
 <body>
 <% data = {} -%>
-<% if defined? ID_KEY %>
-<% token = current_user.access_token(ID_KEY) %>
+<% if Settings.key?(:id_key) %>
+<% token = current_user.access_token(Settings.id_key) %>
 <% data[:token] = token.token -%>
 <% data[:token_secret] = token.secret -%>
 <% data[:consumer_key] = token.client_application.key -%>