diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-07-13 16:24:01 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-07-13 16:24:01 +0100 |
commit | 0665b99d6e1c75ea1c4227f79d10f8fc5ab41f6b (patch) | |
tree | 20d5e971ad6b21050e1604b3dadf26f5460ec635 /app/controllers/request_controller.rb | |
parent | a498a503e840c6c7084234f01f6cf61459e7234e (diff) |
Fix bug that meant plugin custom states weren't being loaded
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 44e4880c2..441ddc417 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -14,7 +14,8 @@ class RequestController < ApplicationController @@custom_states_loaded = false begin - if !ENV["RAILS_ENV"] == "test" + if ENV["RAILS_ENV"] != "test" + require 'customstates' include RequestControllerCustomStates @@custom_states_loaded = true end |