Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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 from
@jake3030 jake3030 referenced this pull request from a commit in jake3030/rails
@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 authored
    …thod 'prerequisites' for nil:NilClass (from rspec)
This page is out of date. Refresh to see the latest.
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.