diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-10-20 01:08:21 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-11-02 17:14:50 +0100 |
commit | bbf02ffea449b32c93e931f7ff2625a8dc736792 (patch) | |
tree | 7bf7e0b65f10d291bda17cb85eb47098adf7b9c4 /railties/lib/rails | |
parent | bcd414fd10a0e401cfb1de95cc9b2940b1df0ff6 (diff) | |
download | rails-bbf02ffea449b32c93e931f7ff2625a8dc736792.tar.gz rails-bbf02ffea449b32c93e931f7ff2625a8dc736792.tar.bz2 rails-bbf02ffea449b32c93e931f7ff2625a8dc736792.zip |
That method is already declared at AppBase
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 8c6ec41e4d..9328cdc789 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -312,29 +312,6 @@ module Rails "rails new #{self.arguments.map(&:usage).join(' ')} [options]" end - def builder - @builder ||= begin - if path = options[:builder] - if URI(path).is_a?(URI::HTTP) - contents = open(path, "Accept" => "application/x-thor-template") {|io| io.read } - else - contents = open(File.expand_path(path, @original_wd)) {|io| io.read } - end - - prok = eval("proc { #{contents} }", TOPLEVEL_BINDING, path, 1) - instance_eval(&prok) - end - - builder_class = get_builder_class - builder_class.send(:include, ActionMethods) - builder_class.new(self) - end - end - - def build(meth, *args) - builder.send(meth, *args) if builder.respond_to?(meth) - end - # Define file as an alias to create_file for backwards compatibility. def file(*args, &block) create_file(*args, &block) |