From 7f93d7f1d486f55f6ebe9da37150d16b1a4fa634 Mon Sep 17 00:00:00 2001 From: Henare Degan Date: Wed, 20 Feb 2013 11:58:48 +1100 Subject: Remove deprecated constants - #589 --- app/controllers/request_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/request_controller.rb') diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 162060d9b..3bd032c3d 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -17,7 +17,7 @@ class RequestController < ApplicationController @@custom_states_loaded = false begin - if ENV["RAILS_ENV"] != "test" + if !Rails.env.test? require 'customstates' include RequestControllerCustomStates @@custom_states_loaded = true -- cgit v1.2.3