Sha256: db91252bf90649759e71453d3f67dabe922da9a82c17ddc24296456b109060f5

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 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']
  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

4 entries across 4 versions & 2 rubygems

Version Path
IPGlider-annotate-2.2.6 lib/tasks/annotate_models.rake
nofxx-annotate-2.2.2 lib/tasks/annotate_models.rake
nofxx-annotate-2.2.3 lib/tasks/annotate_models.rake
nofxx-annotate-2.2.5 lib/tasks/annotate_models.rake