Sha256: b4851ac757fb6fd11941f6428f7e3fd1c1c306f31e8a64c46ab524d471543e15
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_subject-0.1.0.pre10 | lib/tasks/enju_subject_tasks.rake |
enju_subject-0.1.0.pre9 | lib/tasks/enju_subject_tasks.rake |