Sha256: b4055c355203ab67c3d8f2a979bd8cbb983f4e8dc958e1180d109f2b13932151

Contents?: true

Size: 382 Bytes

Versions: 5

Compression:

Stored size: 382 Bytes

Contents

require 'seedbank/dsl'
require 'seedbank/runner'

module Seedbank

  class << self

    attr_writer :seeds_root

    def seeds_root
      @seeds_root ||= 'db/seeds'
    end

  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

5 entries across 5 versions & 1 rubygems

Version Path
seedbank-0.4.0 lib/seedbank.rb
seedbank-0.4.0.pre lib/seedbank.rb
seedbank-0.3.0 lib/seedbank.rb
seedbank-0.3.0.pre2 lib/seedbank.rb
seedbank-0.3.0.pre lib/seedbank.rb