aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-24 11:35:05 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-02-24 11:35:05 -0800
commitbce6cbdeabfe2d8fcfae0cee8a03f0521f14c84e (patch)
treeaeb477cdec54220c092f93dfa2e5f154647a1f97 /railties/lib/rails
parentd65376fce4ea806e489d1fb985bc9393bcd2e0e2 (diff)
parent2da5ea1c9feb4a7b491bd00bd6ffd931b9203da8 (diff)
downloadrails-bce6cbdeabfe2d8fcfae0cee8a03f0521f14c84e.tar.gz
rails-bce6cbdeabfe2d8fcfae0cee8a03f0521f14c84e.tar.bz2
rails-bce6cbdeabfe2d8fcfae0cee8a03f0521f14c84e.zip
Merge pull request #9401 from sikachu/master-remove-builder-option
Remove `--builder` option from `rails` command
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/app_base.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb
index 2709aa7752..3080b055a0 100644
--- a/railties/lib/rails/generators/app_base.rb
+++ b/railties/lib/rails/generators/app_base.rb
@@ -19,9 +19,6 @@ module Rails
argument :app_path, type: :string
def self.add_shared_options_for(name)
- class_option :builder, type: :string, aliases: '-b',
- desc: "Path to some #{name} builder (can be a filesystem path or URL)"
-
class_option :template, type: :string, aliases: '-m',
desc: "Path to some #{name} template (can be a filesystem path or URL)"
@@ -81,17 +78,6 @@ module Rails
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)