Sha256: 3b84cff58d4d0fc8fafb482a6baec32f0bd4a35833eb311a654e1615689ce29c

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 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
  AnnotateModels.do_annotations(options)
end

desc "Remove schema information from model and fixture files"
task :remove_annotation => :environment do
  require 'annotate/annotate_models'
  AnnotateModels.remove_annotations
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codeape-annotate-2.0.0.20090212001 lib/tasks/annotate_models.rake