diff options
author | wycats <wycats@gmail.com> | 2010-10-06 02:58:49 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-10-06 02:58:49 -0700 |
commit | 0904e8256864239f673bf91fce1cfffb9345ee61 (patch) | |
tree | 5c9b215012d5a8260daa3eb2f010f71624d51943 /railties/lib | |
parent | 848eb0d777d2f2907c399c2fe073fedffad14c63 (diff) | |
download | rails-0904e8256864239f673bf91fce1cfffb9345ee61.tar.gz rails-0904e8256864239f673bf91fce1cfffb9345ee61.tar.bz2 rails-0904e8256864239f673bf91fce1cfffb9345ee61.zip |
Delegate everything to the generator
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 2715483914..d2ab098885 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -14,21 +14,11 @@ module Rails @options = generator.options end - private - %w(template copy_file directory empty_directory inside - empty_directory_with_gitkeep create_file chmod shebang).each do |method| - class_eval <<-RUBY, __FILE__, __LINE__ + 1 - def #{method}(*args, &block) - @generator.send(:#{method}, *args, &block) - end - RUBY - end + private - # TODO: Remove once this is fully in place - def method_missing(meth, *args, &block) - STDERR.puts "Calling #{meth} with #{args.inspect} with #{block}" - @generator.send(meth, *args, &block) - end + def method_missing(meth, *args, &block) + @generator.send(meth, *args, &block) + end end class AppBuilder |