aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/plugins/annotate_models/tasks
diff options
context:
space:
mode:
authorfrancis <francis>2007-12-11 12:16:29 +0000
committerfrancis <francis>2007-12-11 12:16:29 +0000
commit38732c1cd909d7566956aecb54187cbaec26309d (patch)
tree132fa2487b7c7ba73ba03b037fd41ec9d74b37cb /vendor/plugins/annotate_models/tasks
parent77f2ceeb179b8143d0a34991fb64d0561007330d (diff)
Annotate model files with their members.
Type "rake annotate_models" to do this.
Diffstat (limited to 'vendor/plugins/annotate_models/tasks')
-rw-r--r--vendor/plugins/annotate_models/tasks/annotate_models_tasks.rake6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/plugins/annotate_models/tasks/annotate_models_tasks.rake b/vendor/plugins/annotate_models/tasks/annotate_models_tasks.rake
new file mode 100644
index 000000000..0faee208a
--- /dev/null
+++ b/vendor/plugins/annotate_models/tasks/annotate_models_tasks.rake
@@ -0,0 +1,6 @@
+desc "Add schema information (as comments) to model files"
+
+task :annotate_models do
+ require File.join(File.dirname(__FILE__), "../lib/annotate_models.rb")
+ AnnotateModels.do_annotations
+end \ No newline at end of file