Skip to content

Loading…

This fixes rake for me in RefineryCMS. #1317

Merged
merged 1 commit into from

2 participants

@parndt

This fixes rake for me in RefineryCMS. Otherwise, I get: undefined method 'prerequisites' for nil:NilClass (from rspec)

@parndt parndt This fixes rake for me in RefineryCMS. Otherwise, I get: undefined me…
…thod 'prerequisites' for nil:NilClass (from rspec)
9e88b87
@tenderlove tenderlove merged commit 072e1ca into rails:3-0-stable
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this pull request
@hiroshi hiroshi Make polymorphic_url compact given array [#1317 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
94d6716
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 26, 2011
  1. @parndt

    This fixes rake for me in RefineryCMS. Otherwise, I get: undefined me…

    parndt committed
    …thod 'prerequisites' for nil:NilClass (from rspec)
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 7 deletions.
  1. +5 −6 railties/lib/rails/application.rb
  2. +0 −1 railties/lib/rails/railtie.rb
View
11 railties/lib/rails/application.rb
@@ -211,12 +211,11 @@ def default_middleware_stack
end
def initialize_tasks
- self.class.rake_tasks do
- require "rails/tasks"
- task :environment do
- $rails_rake_task = true
- require_environment!
- end
+ extend Rake::DSL if defined? Rake::DSL
+ require "rails/tasks"
+ task :environment do
+ $rails_rake_task = true
+ require_environment!
end
end
View
1 railties/lib/rails/railtie.rb
@@ -181,7 +181,6 @@ def load_console
end
def load_tasks
- extend Rake::DSL if defined? Rake::DSL
self.class.rake_tasks.each(&:call)
end
Something went wrong with that request. Please try again.