Commit 55649101371763227616e76dba1bf6083ac9a9f1
1 parent
87318d7b
Exists in
master
and in
23 other branches
application-controller: uncomment protected scope
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/application_controller.rb
| ... | ... | @@ -79,7 +79,7 @@ class ApplicationController < ActionController::Base |
| 79 | 79 | |
| 80 | 80 | helper_method :current_person, :current_person |
| 81 | 81 | |
| 82 | - # protected | |
| 82 | + protected | |
| 83 | 83 | |
| 84 | 84 | def setup_multitenancy |
| 85 | 85 | Noosfero::MultiTenancy.setup!(request.host) |
| ... | ... | @@ -174,7 +174,7 @@ class ApplicationController < ActionController::Base |
| 174 | 174 | end |
| 175 | 175 | |
| 176 | 176 | def find_by_contents(asset, scope, query, paginate_options={:page => 1}, options={}) |
| 177 | - @plugins.dispatch_first(:find_by_contents, asset, scope, query, paginate_options, options) || | |
| 177 | + plugins.dispatch_first(:find_by_contents, asset, scope, query, paginate_options, options) || | |
| 178 | 178 | fallback_find_by_contents(asset, scope, query, paginate_options, options) |
| 179 | 179 | end |
| 180 | 180 | ... | ... |