Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Delegate everything to the generator

  • Loading branch information...
commit 0904e8256864239f673bf91fce1cfffb9345ee61 1 parent 848eb0d
@wycats wycats authored
Showing with 4 additions and 14 deletions.
  1. +4 −14 railties/lib/rails/generators/rails/app/app_generator.rb
View
18 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -14,21 +14,11 @@ def initialize(generator)
@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
Please sign in to comment.
Something went wrong with that request. Please try again.