]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Improve behaviour of browse pages when no bounding box is available
[rails.git] / app / controllers / changeset_controller.rb
index 5575e47bf3e914b96a6d82f4a7aa7ff4df83ff59..36b3b5124ed3b725d3cc518f33096dc2150c0cc5 100644 (file)
@@ -204,7 +204,7 @@ class ChangesetController < ApplicationController
 
     # create the conditions that the user asked for. some or all of
     # these may be nil.
-    changesets = Changeset.scoped
+    changesets = Changeset.all
     changesets = conditions_bbox(changesets, bbox)
     changesets = conditions_user(changesets, params['user'], params['display_name'])
     changesets = conditions_time(changesets, params['time'])
@@ -253,7 +253,7 @@ class ChangesetController < ApplicationController
     if request.format == :atom and params[:page]
       redirect_to params.merge({ :page => nil }), :status => :moved_permanently
     else
-      changesets = conditions_nonempty(Changeset.scoped)
+      changesets = conditions_nonempty(Changeset.all)
 
       if params[:display_name]
         user = User.find_by_display_name(params[:display_name])