1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #20564 from repinel/fix-generators-named-base-template-doc

[ci skip] Fix the Rails::Generators::NamedBase#template doc
This commit is contained in:
Arthur Nogueira Neves 2015-06-15 21:14:35 +02:00
commit 5c517ee442

View file

@ -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