diff options
author | Roque Pinel <repinel@gmail.com> | 2015-06-15 00:16:43 -0400 |
---|---|---|
committer | Roque Pinel <repinel@gmail.com> | 2015-06-15 00:16:43 -0400 |
commit | 5fab7192ba811ee07d0202cd8cf35bb1f2773e63 (patch) | |
tree | 811ef47ce138f25df0a3662ad985489b5b136271 /railties | |
parent | db620812354c39b928d4ac6a8fc05437c54031cc (diff) | |
download | rails-5fab7192ba811ee07d0202cd8cf35bb1f2773e63.tar.gz rails-5fab7192ba811ee07d0202cd8cf35bb1f2773e63.tar.bz2 rails-5fab7192ba811ee07d0202cd8cf35bb1f2773e63.zip |
[ci skip] Fix the Rails::Generators::NamedBase#template doc
Since #13612, `template` is no longer being used to generate
migrations.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/named_base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index 01a8e2e9b4..7b527831b0 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -18,8 +18,8 @@ module Rails parse_attributes! if respond_to?(:attributes) end - # Defines the template that would be used for the migration file. - # The arguments include the source template file, the migration filename etc. + # Overrides <tt>Thor::Actions#template</tt> so it can tell if + # a template is currently being created. no_tasks do def template(source, *args, &block) inside_template do |