Permalink
Browse files

Added documentation for Rails::Generators::NamedBase.template

  • Loading branch information...
1 parent d6bf62c commit af2d212b63d5af09044d30e3dfbaec8b31f26fd7 @aditya-kapoor aditya-kapoor committed May 13, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/lib/rails/generators/named_base.rb
@@ -18,6 +18,10 @@ def initialize(args, *options) #:nodoc:
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

0 comments on commit af2d212

Please sign in to comment.