Skip to content

Commit 24f42c1

Browse files
committed
Document "template" as an array of lines
One day a simple string might point to a file containing a template.
1 parent 04bea82 commit 24f42c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/rails.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ Vim syntax looks a lot like JSON, but with funky |line-continuation|:
749749
\ "app/uploaders/*_uploader.rb": {
750750
\ "command": "uploader",
751751
\ "template":
752-
\ "class %SUploader < CarrierWave::Uploader::Base\nend",
752+
\ ["class %SUploader < CarrierWave::Uploader::Base", "end"],
753753
\ "test": [
754754
\ "test/unit/%s_uploader_test.rb",
755755
\ "spec/models/%s_uploader_spec.rb"
@@ -823,7 +823,7 @@ The full list of available options is as follows:
823823
"template" ~
824824
If you provide a ! after the argument to the navigation command (that
825825
is, :Euploader foo!, NOT :Euploader! foo), and a new file is created,
826-
this will be used as the body.
826+
this will be used as an array of lines to populate the body.
827827

828828
CONFIGURATION *rails-configuration*
829829

0 commit comments

Comments
 (0)