]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/browse_controller.rb
Don't user flash[:notice] when we're not redirecting as it will
[rails.git] / app / controllers / browse_controller.rb
index a6c0e0ae205fb8d745078053df7e2a1ce0f51812..f3a04519cbd362b5f8133a1c7c079d7ef9dda7ff 100644 (file)
@@ -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