@@ -86,13 +86,13 @@ To annotate just your models, tests, and factories:
86
86
87
87
To annotate just your models:
88
88
89
- annotate --exclude tests,fixtures,factories
89
+ annotate --exclude tests,fixtures,factories,serializers
90
90
91
91
To annotate routes.rb:
92
92
93
93
annotate --routes
94
94
95
- To remove model/test/fixture/factory annotations:
95
+ To remove model/test/fixture/factory/serializer annotations:
96
96
97
97
annotate --delete
98
98
@@ -165,6 +165,8 @@ you can do so with a simple environment variable, instead of editing the
165
165
Place the annotations at the top (before) or the bottom (after) of any test files
166
166
--pr, --position-in-routes [before|after]
167
167
Place the annotations at the top (before) or the bottom (after) of the routes.rb file
168
+ --ps, --position-in-serializer [before|after]
169
+ Place the annotations at the top (before) or the bottom (after) of the serializer files
168
170
-r, --routes Annotate routes.rb with the output of 'rake routes'
169
171
-v, --version Show the current version of this gem
170
172
-m, --show-migration Include the migration version number in the annotation
@@ -174,13 +176,15 @@ you can do so with a simple environment variable, instead of editing the
174
176
--ignore-model-subdirects Ignore subdirectories of the models directory
175
177
--sort Sort columns alphabetically, rather than in creation order
176
178
-R, --require path Additional file to require before loading models, may be used multiple times
177
- -e [tests,fixtures,factories], Do not annotate fixtures, test files, and/or factories
178
- --exclude
179
+ -e [tests,fixtures,factories,serializers],
180
+ --exclude Do not annotate fixtures, test files, factories, and/or serializers
179
181
-f [bare|rdoc|markdown], Render Schema Infomation as plain/RDoc/Markdown
180
182
--format
181
183
--force Force new annotations even if there are no changes.
184
+ --timestamp Include timestamp in (routes) annotation
182
185
--trace If unable to annotate a file, print the full stack trace, not just the exception message.
183
- --timestamp Include an updated time in routes.rb
186
+ -I, --ignore-columns REGEX don't annotate columns that match a given REGEX (i.e., `annotate -I '^(id|updated_at|created_at)'`
187
+
184
188
185
189
186
190
== Sorting
0 commit comments