Sha256: 73ae08c0dcbc6c2450a5ca4032e5b2bbca25dd0521099b5adc4a0a83b53c03e0

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

require 'seedbank/dsl'
require 'seedbank/task'
require 'seedbank/task_manager'

require 'rake' unless defined?(Rake)

Rake::Task.extend(Seedbank::Task)
Rake::Application.send(:include, Seedbank::TaskManager)

module Seedbank

  @@seeds_root = 'db/seeds'

  def self.seeds_root
    @@seeds_root
  end

  def self.load_tasks
    Dir[File.expand_path("tasks/*.rake", File.dirname(__FILE__))].each { |ext| load ext }
  end

  require 'seedbank/railtie' if defined?(Rails) && Rails::VERSION::MAJOR >= 3

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
seedbank-0.0.9 lib/seedbank.rb
seedbank-0.0.8 lib/seedbank.rb
seedbank-0.0.7 lib/seedbank.rb