X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d3314fee0f4a4031a893e0a93b5fa0f86b1613ed..967f44ffac7dfbbc91dabd8dc221be22e4ba0606:/app/controllers/browse_controller.rb diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index a6c0e0ae2..f3a04519c 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -1,10 +1,12 @@ class BrowseController < ApplicationController - before_filter :authorize_web layout 'site' + before_filter :authorize_web + before_filter { |c| c.check_database_availability(true) } + def start - @nodes = Node.find(:all, :order => "timestamp DESC", :limit=> 20) end + def index @nodes = Node.find(:all, :order => "timestamp DESC", :limit=> 20) end