diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-21 09:57:37 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2011-05-21 09:57:37 -0700 |
commit | 8b719cf3f73cbce78506e3a42ed01b2c4314a70a (patch) | |
tree | 712b536b6ea5cda2e6284e46e33c6ef568a169b9 /railties/lib/rails/railtie.rb | |
parent | da8469fa7dc5caffc69b5407ac0d94183a72c09e (diff) | |
parent | e2908356672d4459ada0064f773efd820efda822 (diff) | |
download | rails-8b719cf3f73cbce78506e3a42ed01b2c4314a70a.tar.gz rails-8b719cf3f73cbce78506e3a42ed01b2c4314a70a.tar.bz2 rails-8b719cf3f73cbce78506e3a42ed01b2c4314a70a.zip |
Merge pull request #1174 from bilts/fix-rake-dsl
Make Rake::DSL methods available within Railtie rake_tasks block (so we're compatible with Rake 0.9.0).
Diffstat (limited to 'railties/lib/rails/railtie.rb')
-rw-r--r-- | railties/lib/rails/railtie.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/railtie.rb b/railties/lib/rails/railtie.rb index b183eb8ddd..0a65840c2b 100644 --- a/railties/lib/rails/railtie.rb +++ b/railties/lib/rails/railtie.rb @@ -178,6 +178,7 @@ module Rails end def load_tasks + extend Rake::DSL if defined? Rake::DSL self.class.rake_tasks.each(&:call) # load also tasks from all superclasses |