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/models/info_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 9d8fc29fd..375d972a3 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -152,7 +152,7 @@ class InfoRequest < ActiveRecord::Base @@custom_states_loaded = false begin - if ENV["RAILS_ENV"] != "test" + if !Rails.env.test? require 'customstates' include InfoRequestCustomStates @@custom_states_loaded = true -- cgit v1.2.3