Sha256: a933d973bac607f289a340368e91b028f4d6adf7867d039968b9c8d8ede7e067

Contents?: true

Size: 484 Bytes

Versions: 14

Compression:

Stored size: 484 Bytes

Contents

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

    Rake::Task['enju_event:setup'].invoke
    Rake::Task['enju_message:setup'].invoke

    puts 'initial fixture files loaded.'
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
enju_circulation-0.1.0.pre31 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre30 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre29 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre28 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre27 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre26 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre25 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre24 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre23 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre22 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre21 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre20 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre19 lib/tasks/enju_circulation_tasks.rake
enju_circulation-0.1.0.pre18 lib/tasks/enju_circulation_tasks.rake