Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

load_generators from engine should also handle self automatically.

  • Loading branch information...
commit a7039df4ceaddd0ec0118e4f1dae134908998204 1 parent 677df61
@josevalim josevalim authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 railties/lib/rails/railtie.rb
View
6 railties/lib/rails/railtie.rb
@@ -173,11 +173,11 @@ def config
def eager_load!
end
- def load_console(app)
+ def load_console(app=self)
self.class.console.each { |block| block.call(app) }
end
- def load_tasks(app)
+ def load_tasks(app=self)
extend Rake::DSL if defined? Rake::DSL
self.class.rake_tasks.each { |block| block.call(app) }
@@ -189,7 +189,7 @@ def load_tasks(app)
end
end
- def load_generators(app)
+ def load_generators(app=self)
self.class.generators.each { |block| block.call(app) }
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.