]> git.openstreetmap.org Git - rails.git/commitdiff
Fix syntax error with ruby 2.5
authorTom Hughes <tom@compton.nu>
Sat, 28 Apr 2018 16:12:27 +0000 (17:12 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 28 Apr 2018 16:12:27 +0000 (17:12 +0100)
app/controllers/browse_controller.rb

index 41fa14aae07ff05a9f7aa6369fe5184cd208a576..b4cb4594fb43e7dcffa9694e7b8919961e4cdfdf 100644 (file)
@@ -3,7 +3,7 @@ class BrowseController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
-  before_action :except => [:query] { |c| c.check_database_readable(true) }
+  before_action(:except => [:query]) { |c| c.check_database_readable(true) }
   before_action :require_oauth
   around_action :web_timeout