]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/changesets_controller.rb
Merge remote-tracking branch 'upstream/pull/4226'
[rails.git] / app / controllers / api / changesets_controller.rb
index a3dff4f1cd7e4fc935986a009c71e9b31ac7c411..7bb7a5a4de14bddb49f988f7f9285d96de074b1e 100644 (file)
@@ -325,7 +325,7 @@ module Api
           raise OSM::APINotFoundError if current_user.nil? || current_user != u
         end
 
-        changesets.where(:user_id => u.id)
+        changesets.where(:user => u)
       end
     end