]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changesets_controller.rb
Simplify render calls for changesets
[rails.git] / app / controllers / changesets_controller.rb
index 3b20130d00829eb29a4ae71e1aa3b8f011c23281..82966a353437d1d0a0837b527d1583c9798f11ca 100644 (file)
@@ -53,7 +53,7 @@ class ChangesetsController < ApplicationController
       elsif @params[:bbox]
         changesets = conditions_bbox(changesets, BoundingBox.from_bbox_params(params))
       elsif @params[:friends] && current_user
-        changesets = changesets.where(:user_id => current_user.friend_users.identifiable)
+        changesets = changesets.where(:user_id => current_user.friends.identifiable)
       elsif @params[:nearby] && current_user
         changesets = changesets.where(:user_id => current_user.nearby)
       end