diff options
author | Prem Sichanugrist <s@sikac.hu> | 2013-02-24 13:46:27 -0500 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2013-02-24 14:31:08 -0500 |
commit | 2da5ea1c9feb4a7b491bd00bd6ffd931b9203da8 (patch) | |
tree | eb549cf5d0ade20f86dca4e1765a8516a81298eb /railties/lib/rails | |
parent | 5fc3b87c93edf770ea0d6b52a28ea225183dbfd7 (diff) | |
download | rails-2da5ea1c9feb4a7b491bd00bd6ffd931b9203da8.tar.gz rails-2da5ea1c9feb4a7b491bd00bd6ffd931b9203da8.tar.bz2 rails-2da5ea1c9feb4a7b491bd00bd6ffd931b9203da8.zip |
Remove `--builder` option from `rails` command
Ability to use a custom builder by passing `--builder` (or `-b`) has
been removed. Consider using application template instead. See this
guide for more detail:
http://guides.rubyonrails.org/rails_application_templates.html
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 14 |
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 99d80b3245..e886cf77fb 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) |