Permalink
Browse files

load_generators from engine should also handle self automatically.

  • Loading branch information...
1 parent 677df61 commit a7039df4ceaddd0ec0118e4f1dae134908998204 @josevalim josevalim committed Jun 15, 2011
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

0 comments on commit a7039df

Please sign in to comment.