projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7420479
)
Add missing authorize_resource declaration to geocoder controller
author
Andy Allan
<git@gravitystorm.co.uk>
Wed, 9 Jan 2019 09:14:52 +0000
(10:14 +0100)
committer
Andy Allan
<git@gravitystorm.co.uk>
Wed, 9 Jan 2019 09:14:52 +0000
(10:14 +0100)
app/controllers/geocoder_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/geocoder_controller.rb
b/app/controllers/geocoder_controller.rb
index da5245687f73db3fb97871fac05a47876420f017..b9cf8d096f35a635e8e9ad957258f097e51e8300 100644
(file)
--- a/
app/controllers/geocoder_controller.rb
+++ b/
app/controllers/geocoder_controller.rb
@@
-6,6
+6,7
@@
class GeocoderController < ApplicationController
before_action :authorize_web
before_action :set_locale
before_action :require_oauth, :only => [:search]
+ authorize_resource :class => false
def search
@params = normalize_params