aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-06-29 15:01:52 +0100
committerGareth Rees <gareth@mysociety.org>2015-06-29 15:01:52 +0100
commita5662ac07fa62eadd4a66cacd236873914178427 (patch)
tree29462153eddc905068b016e7fd2a77b314ccf8ca
parent8da72872b1096a6687dfe6b3a1cc84c93961e01b (diff)
List private methods in the order they’re calledrelease-0-22-fix-widget
Easier to read through as they’re now in the order called in the before_filter
-rw-r--r--app/controllers/widgets_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/widgets_controller.rb b/app/controllers/widgets_controller.rb
index 32bfebf50..74c85c09a 100644
--- a/app/controllers/widgets_controller.rb
+++ b/app/controllers/widgets_controller.rb
@@ -31,16 +31,16 @@ class WidgetsController < ApplicationController
private
- def find_info_request
- @info_request = InfoRequest.find(params[:request_id])
- end
-
def check_widget_config
unless AlaveteliConfiguration::enable_widgets
raise ActiveRecord::RecordNotFound.new("Page not enabled")
end
end
+ def find_info_request
+ @info_request = InfoRequest.find(params[:request_id])
+ end
+
def check_prominence
unless @info_request.prominence == 'normal'
render :nothing => true, :status => :forbidden