X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7cd73546730cc83e475d3d647116e444894fdcc4..46e3d846747a8ed50b2fd29d1e162432fca38e7d:/app/views/site/_potlatch2.html.erb?ds=sidebyside diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index bb6d3f81e..11519c26e 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -1,7 +1,7 @@ <%= javascript_include_tag "edit/potlatch2" %>
- <% session[:token] = current_user.tokens.create.token unless session[:token] && UserToken.find_by_token(session[:token]) -%> + <% session[:token] = current_user.tokens.create.token unless session[:token] && UserToken.find_by(:token => session[:token]) -%> <% data = { :token => session[:token] } -%> <% data[:lat] = @lat if @lat -%> <% data[:lon] = @lon if @lon -%>