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