Sha256: d777631e185448637d6a402b60c3a78694b27103bed40436d18000070a8f0094

Contents?: true

Size: 381 Bytes

Versions: 16

Compression:

Stored size: 381 Bytes

Contents

require 'active_record/fixtures'
desc "create initial records for enju_subject"
namespace :enju_subject do
  task :setup => :environment do
    Dir.glob(Rails.root.to_s + '/db/fixtures/enju_subject/*.yml').each do |file|
      ActiveRecord::Fixtures.create_fixtures('db/fixtures/enju_subject', File.basename(file, '.*'))
    end

    puts 'initial fixture files loaded.'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_subject-0.1.0.pre26 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre25 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre24 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre23 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre22 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre21 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre20 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre19 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre18 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre17 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre16 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre15 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre14 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre13 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre12 lib/tasks/enju_subject_tasks.rake
enju_subject-0.1.0.pre11 lib/tasks/enju_subject_tasks.rake