aboutsummaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-12-10 01:32:18 +1100
committerHenare Degan <henare.degan@gmail.com>2012-12-11 11:09:39 +1100
commit273392dd8318230b2cc1070dd3c17abb8851c4b9 (patch)
tree25ff3e31c1fc07964302d8be53e045e221952dcd /vendor
parent6cb6d044f9af1a568a915aa0f38cb7d2e337fae7 (diff)
RAILS_ROOT is deprecated
Diffstat (limited to 'vendor')
-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 374fcd65b..c59f0524e 100644
--- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
+++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
@@ -92,7 +92,7 @@ module ActsAsXapian
raise "Set RAILS_ENV, so acts_as_xapian can find the right Xapian database" if not environment
# check for a config file
- config_file = RAILS_ROOT + "/config/xapian.yml"
+ config_file = Rails.root.to_s + "/config/xapian.yml"
@@config = File.exists?(config_file) ? YAML.load_file(config_file)[environment] : {}
# figure out where the DBs should go