aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorRoque Pinel <repinel@gmail.com>2015-06-15 00:16:43 -0400
committerRoque Pinel <repinel@gmail.com>2015-06-15 00:16:43 -0400
commit5fab7192ba811ee07d0202cd8cf35bb1f2773e63 (patch)
tree811ef47ce138f25df0a3662ad985489b5b136271 /railties/lib/rails/generators
parentdb620812354c39b928d4ac6a8fc05437c54031cc (diff)
downloadrails-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/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/named_base.rb4
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