Skip to content

Commit 974a207

Browse files
committed
Fix formatting
1 parent 672ca96 commit 974a207

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.rdoc

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,23 +217,24 @@ you can do so with a simple environment variable, instead of editing the
217217

218218
=== Option: +additional_file_patterns+
219219

220-
CLI: +--additional_file_patterns+
220+
CLI: +--additional_file_patterns+<br>
221221
Ruby: +:additional_file_patterns+
222222

223-
Provide additional paths for the gem to annotate. It works with existing
224-
filename resolutions (options for which can be found in the +resolve_filename+ method of
225-
+annotate_models.rb+). These paths can also include globs. It is recommended to use absolute paths. Here are some
226-
examples:
223+
Provide additional paths for the gem to annotate. These paths can include globs.
224+
It is recommended to use absolute paths. Here are some examples:
227225

228-
- +/app/lib/decorates/%MODEL_NAME%/*.rb+
229-
- +/app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb+
230-
- +/app/lib/forms/%TABLE_NAME%/*.rb+
231226

232-
The appropriate model will be inferred using the +%*%+ syntax, annotating any matching files.
227+
- <code>/app/lib/decorates/%MODEL_NAME%/*.rb</code>
228+
- <code>/app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb</code>
229+
- <code>/app/lib/forms/%TABLE_NAME%/*.rb</code>
230+
231+
The appropriate model will be inferred using the <code>%*%</code> syntax, annotating any matching files.
232+
It works with existing filename resolutions (options for which can be found in the +resolve_filename+ method of
233+
+annotate_models.rb+).
233234

234235
When using in a Rails config, you can use the following:
235236

236-
+File.join(Rails.application.root, 'app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb')+
237+
<code>File.join(Rails.application.root, 'app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb')</code>
237238

238239

239240
== Sorting

0 commit comments

Comments
 (0)