Query mode doesn't need the database
authorTom Hughes <tom@compton.nu>
Sun, 14 Dec 2014 00:18:46 +0000 (00:18 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 14 Dec 2014 00:18:46 +0000 (00:18 +0000)
app/controllers/browse_controller.rb

index f0b92f4..f60957f 100644 (file)
@@ -3,7 +3,7 @@ class BrowseController < ApplicationController
 
   before_filter :authorize_web  
   before_filter :set_locale 
-  before_filter { |c| c.check_database_readable(true) }
+  before_filter :except => [ :query ] { |c| c.check_database_readable(true) }
   before_filter :require_oauth
   around_filter :web_timeout