aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-03-05 13:26:36 +1100
committerHenare Degan <henare.degan@gmail.com>2013-03-05 13:26:36 +1100
commitdadcdb69e97579ebd83f2793f59ecf99b1e52bd0 (patch)
tree9283b323f5c6af78cdd9c5206c64603c10af97c7
parenteb8a3cc5ad07286a69d4d031b94c75fc9c76a7b5 (diff)
RAILS_ENV is deprecated
-rw-r--r--vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
index ccaa48bee..9eaedcf9e 100644
--- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
+++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
@@ -88,7 +88,7 @@ module ActsAsXapian
return unless @@db_path.nil?
# barf if we can't figure out the environment
- environment = (ENV['RAILS_ENV'] or RAILS_ENV)
+ environment = (ENV['RAILS_ENV'] or Rails.env)
raise "Set RAILS_ENV, so acts_as_xapian can find the right Xapian database" if not environment
# check for a config file