From a5662ac07fa62eadd4a66cacd236873914178427 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Mon, 29 Jun 2015 15:01:52 +0100 Subject: =?UTF-8?q?List=20private=20methods=20in=20the=20order=20they?= =?UTF-8?q?=E2=80=99re=20called?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Easier to read through as they’re now in the order called in the before_filter --- app/controllers/widgets_controller.rb | 8 ++++---- 1 file 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 -- cgit v1.2.3