Sha256: 67e37c836b6a459d57f75f8f38b49caaa507827ab821659db4dba5af319838c0

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

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

    Rake::Task['enju_biblio:setup'].invoke
    Rake::Task['enju_library:setup'].invoke

    puts 'initial fixture files loaded.'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.beta3 lib/tasks/enju_leaf_tasks.rake
enju_leaf-1.1.0.pre3 lib/tasks/enju_leaf_tasks.rake