diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-05 13:26:36 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-05 13:26:36 +1100 |
commit | dadcdb69e97579ebd83f2793f59ecf99b1e52bd0 (patch) | |
tree | 9283b323f5c6af78cdd9c5206c64603c10af97c7 | |
parent | eb8a3cc5ad07286a69d4d031b94c75fc9c76a7b5 (diff) |
RAILS_ENV is deprecated
-rw-r--r-- | vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb | 2 |
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 |