-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (26 loc) · 1.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
AnnotateModels
==============
A collection of rake tasks to annotate files with ActiveRecord model information.
Currently, this plugin annotates the following files:
- app/models/*.rb
- test/factories/*_factory.rb
Example
=======
The plugin comes with these tasks:
- annotate:all Annotates factories (that is, factory_girl ones) and models.
- annotate:factories Annotates only factory_girl factories.
- annotate:models Annotates only ActiveRecord model files.
- annotate:print Only prints out annotations.
- annotate:test:unit Annotates unit test files.
To invoke it, execute the command:
> rake annotate:all OR
> rake annotate:factories OR
> rake annotate:models OR
> rake annotate:print OR
> rake annootate:test:unit
Compatibility
=============
Works with Rails 3.0.x & Ruby 1.9.2 on Mac OS X.
This plugin is my own implementation and shares no code with other pre-existing
implementations save the name.
Copyright (c) 2011 bitaxis.com, released under the MIT license.