Refactor friendships controller and model
This commit is contained in:
parent
2b7a48029b
commit
be11f2075e
27 changed files with 317 additions and 338 deletions
|
@ -55,7 +55,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 => current_user.friends.identifiable)
|
||||
changesets = changesets.where(:user => current_user.followings.identifiable)
|
||||
elsif @params[:nearby] && current_user
|
||||
changesets = changesets.where(:user => current_user.nearby)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue