@@ -217,23 +217,24 @@ you can do so with a simple environment variable, instead of editing the
217
217
218
218
=== Option: +additional_file_patterns+
219
219
220
- CLI: +--additional_file_patterns+
220
+ CLI: +--additional_file_patterns+<br>
221
221
Ruby: +:additional_file_patterns+
222
222
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:
227
225
228
- - +/app/lib/decorates/%MODEL_NAME%/*.rb+
229
- - +/app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb+
230
- - +/app/lib/forms/%TABLE_NAME%/*.rb+
231
226
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+).
233
234
234
235
When using in a Rails config, you can use the following:
235
236
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>
237
238
238
239
239
240
== Sorting
0 commit comments