diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-15 11:52:45 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-15 15:53:58 -0300 |
commit | 6c3e80af685393b1069b96af3193625137e9b29e (patch) | |
tree | 78710f46578beeda678d9e65453f389c377d44a0 /railties/lib | |
parent | 078bdc6ded46fa1de57ae55031bf5e9a9fd897c8 (diff) | |
download | rails-6c3e80af685393b1069b96af3193625137e9b29e.tar.gz rails-6c3e80af685393b1069b96af3193625137e9b29e.tar.bz2 rails-6c3e80af685393b1069b96af3193625137e9b29e.zip |
load_generators from engine should also handle self automatically.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/railtie.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/railtie.rb b/railties/lib/rails/railtie.rb index 5f50943626..0c641254cf 100644 --- a/railties/lib/rails/railtie.rb +++ b/railties/lib/rails/railtie.rb @@ -174,11 +174,11 @@ module Rails 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) } @@ -190,7 +190,7 @@ module Rails end end - def load_generators(app) + def load_generators(app=self) self.class.generators.each { |block| block.call(app) } end |