diff options
| author | Mark Longair <mhl@pobox.com> | 2013-12-03 18:27:50 +0000 |
|---|---|---|
| committer | Mark Longair <mhl@pobox.com> | 2013-12-03 18:27:50 +0000 |
| commit | 656d2d1170cbcf42b8ff0f0d8321e95702636707 (patch) | |
| tree | cac38faa436bd58fbf8aae76a68c038fbb5a1a5f /Rakefile | |
| parent | baf03db06dba70bab6e0b9ceb3a42da3a6a135c5 (diff) | |
Use Rails.root in the Rakefile
It seems more robust (or certainly easier to understand on reading
the code) to make these paths relative to the Rails root rather
than File.dirname(__FILE__).
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ require File.expand_path('../config/application', __FILE__) require 'rake' Alaveteli::Application.load_tasks if Rails.env == 'test' - Dir[File.join(File.dirname(__FILE__),'commonlib','rblib','tests','*.rake')].each { |file| load(file) } + Dir[Rails.root.join('commonlib','rblib','tests','*.rake')].each { |file| load(file) } end # Make sure the the acts_as_xapian tasks are also loaded: -Dir[File.join(File.dirname(__FILE__),'lib','acts_as_xapian','tasks','*.rake')].each { |file| load(file) } +Dir[Rails.root.join('lib','acts_as_xapian','tasks','*.rake')].each { |file| load(file) } |
