aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authoraditya-kapoor <aditya.kapoor@vinsol.com>2013-05-14 00:22:59 +0530
committeraditya-kapoor <aditya.kapoor@vinsol.com>2013-05-14 00:22:59 +0530
commitaf2d212b63d5af09044d30e3dfbaec8b31f26fd7 (patch)
tree2255a2c951f5c565eebd3f4506450787c3e5926f /railties/lib/rails
parentd6bf62c3c6be07dd4208214f86b8b122b4f3d16a (diff)
downloadrails-af2d212b63d5af09044d30e3dfbaec8b31f26fd7.tar.gz
rails-af2d212b63d5af09044d30e3dfbaec8b31f26fd7.tar.bz2
rails-af2d212b63d5af09044d30e3dfbaec8b31f26fd7.zip
Added documentation for Rails::Generators::NamedBase.template
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/generators/named_base.rb4
1 files changed, 4 insertions, 0 deletions
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