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