@@ -218,23 +218,24 @@ you can do so with a simple environment variable, instead of editing the
218
218
219
219
=== Option: +additional_file_patterns+
220
220
221
- CLI: +--additional_file_patterns+
221
+ CLI: +--additional_file_patterns+<br>
222
222
Ruby: +:additional_file_patterns+
223
223
224
- Provide additional paths for the gem to annotate. It works with existing
225
- filename resolutions (options for which can be found in the +resolve_filename+ method of
226
- +annotate_models.rb+). These paths can also include globs. It is recommended to use absolute paths. Here are some
227
- examples:
224
+ Provide additional paths for the gem to annotate. These paths can include globs.
225
+ It is recommended to use absolute paths. Here are some examples:
228
226
229
- - +/app/lib/decorates/%MODEL_NAME%/*.rb+
230
- - +/app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb+
231
- - +/app/lib/forms/%TABLE_NAME%/*.rb+
232
227
233
- The appropriate model will be inferred using the +%*%+ syntax, annotating any matching files.
228
+ - <code>/app/lib/decorates/%MODEL_NAME%/*.rb</code>
229
+ - <code>/app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb</code>
230
+ - <code>/app/lib/forms/%TABLE_NAME%/*.rb</code>
231
+
232
+ The appropriate model will be inferred using the <code>%*%</code> syntax, annotating any matching files.
233
+ It works with existing filename resolutions (options for which can be found in the +resolve_filename+ method of
234
+ +annotate_models.rb+).
234
235
235
236
When using in a Rails config, you can use the following:
236
237
237
- + File.join(Rails.application.root, 'app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb')+
238
+ <code> File.join(Rails.application.root, 'app/lib/forms/%PLURALIZED_MODEL_NAME%/**/*.rb')</code>
238
239
239
240
240
241
== Sorting
0 commit comments