Sha256: f72969cc5b75bad5c44906a8dc1072d34cde508c3886c3a534f2a5a79da6490e
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
desc "Add schema information (as comments) to model and fixture files" task :annotate_models => :environment do require 'annotate/annotate_models' options={} options[:position_in_class] = ENV['position_in_class'] || ENV['position'] || :before options[:position_in_fixture] = ENV['position_in_fixture'] || ENV['position'] || :before options[:show_indexes] = ENV['show_indexes'] options[:model_dir] = ENV['model_dir'] options[:include_version] = ENV['include_version'] AnnotateModels.do_annotations(options) end desc "Remove schema information from model and fixture files" task :remove_annotation => :environment do require 'annotate/annotate_models' options={} options[:model_dir] = ENV['model_dir'] AnnotateModels.remove_annotations(options) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nofxx-annotate-2.3.0 | lib/tasks/annotate_models.rake |
nofxx-annotate-2.3.1 | lib/tasks/annotate_models.rake |