]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Add creation_address column to users
[rails.git] / app / controllers / users_controller.rb
index 4ebeb1ec3a271f9139fb6932b77d00d1a49cb514..3ba914210edd50fbbb4989ae24d65373f8f94804 100644 (file)
@@ -267,6 +267,7 @@ class UsersController < ApplicationController
     current_user.data_public = true
     current_user.description = "" if current_user.description.nil?
     current_user.creation_ip = request.remote_ip
     current_user.data_public = true
     current_user.description = "" if current_user.description.nil?
     current_user.creation_ip = request.remote_ip
+    current_user.creation_address = request.remote_ip
     current_user.languages = http_accept_language.user_preferred_languages
     current_user.terms_agreed = Time.now.utc
     current_user.tou_agreed = Time.now.utc
     current_user.languages = http_accept_language.user_preferred_languages
     current_user.terms_agreed = Time.now.utc
     current_user.tou_agreed = Time.now.utc