From af2d212b63d5af09044d30e3dfbaec8b31f26fd7 Mon Sep 17 00:00:00 2001 From: aditya-kapoor Date: Tue, 14 May 2013 00:22:59 +0530 Subject: Added documentation for Rails::Generators::NamedBase.template --- railties/lib/rails/generators/named_base.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index d891ba1215..fbb747970d 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -18,6 +18,10 @@ module Rails parse_attributes! if respond_to?(:attributes) end + # Defines the template that would be used for the migration file. + # The source defines the source template file that would be used in creating the migration + # The args is an array containing any other options and the name of the file which would be saved on the filesystem + no_tasks do def template(source, *args, &block) inside_template do -- cgit v1.2.3 From 7f24d3d6956a7775771302d143e3b09de681d12f Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sun, 19 May 2013 21:32:17 +0530 Subject: copy edits[ci skip] --- railties/lib/rails/generators/named_base.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/named_base.rb b/railties/lib/rails/generators/named_base.rb index fbb747970d..e712c747b0 100644 --- a/railties/lib/rails/generators/named_base.rb +++ b/railties/lib/rails/generators/named_base.rb @@ -19,9 +19,7 @@ module Rails end # Defines the template that would be used for the migration file. - # The source defines the source template file that would be used in creating the migration - # The args is an array containing any other options and the name of the file which would be saved on the filesystem - + # The arguments include the source template file, the migration filename etc. no_tasks do def template(source, *args, &block) inside_template do -- cgit v1.2.3