public
Fork of ctran/annotate_models
Description: Annotate ActiveRecord models
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/JackDanger/annotate_models.git
Search Repo:
Refactor how rake tasks are loaded
ctran (author)
Fri Feb 29 11:20:26 -0800 2008
commit  7f96c0c88868afc2b80fe4b4c8748a5edad27c29
tree    c6b955eb21f654d01f5c814a9bb935fcbdc8055a
parent  8dd25dcbce6468d1d15e9dd34361b5486471247a
...
7
8
9
 
10
11
12
...
7
8
9
10
11
12
13
0
@@ -7,6 +7,7 @@ config/hoe.rb
0
 config/requirements.rb
0
 lib/annotate_models.rb
0
 lib/annotate_models/version.rb
0
+lib/annotate_models/tasks.rb
0
 log/debug.log
0
 script/destroy
0
 script/generate
...
1
2
3
 
4
5
6
...
1
 
 
2
3
4
5
0
@@ -1,6 +1,5 @@
0
 #!/usr/bin/env ruby
0
-load 'Rakefile'
0
-require 'tasks/annotate'
0
+require 'annotate_models/tasks'
0
 
0
 Rake::Task['annotate_models'].invoke
0
 
...
 
 
0
...
1
2
3
0
@@ -0,0 +1,2 @@
0
+load 'Rakefile'
0
+Dir[File.join(File.dirname(__FILE__), '../tasks', '**/*.rake')].each { |rake| load rake }
0
\ No newline at end of file
...
 
 
 
 
 
0
...
1
2
3
4
5
6
0
@@ -0,0 +1,5 @@
0
+desc "Add schema information (as comments) to model files"
0
+task :annotate_models => :environment do
0
+ require 'annotate_models'
0
+ AnnotateModels.do_annotations
0
+end
0
\ No newline at end of file
...
1
2
3
4
5
6
...
 
 
 
 
 
0
0
@@ -1,5 +0,0 @@
0
-desc "Add schema information (as comments) to model files"
0
-task :annotate_models => :environment do
0
- require 'annotate_models'
0
- AnnotateModels.do_annotations
0
-end
0
\ No newline at end of file

Comments

    No one has commented yet.