Sha256: 1f56d005765abb61fac8fb540e35fdd073d2038163b6b2c52af7d703b34cd790
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
require "yaml" require "csv" require "pathname" require "active_support" require "active_record" require "activerecord-import" require "seed_gimmick/version" require "seed_gimmick/errors" require "seed_gimmick/options" require "seed_gimmick/inflector" require "seed_gimmick/seed_io" require "seed_gimmick/seed" require "seed_gimmick/railtie" if defined?(Rails) module SeedGimmick class << self def bootstrap(options = nil) Seed.find(options).each {|seed| seed.bootstrap } end def dump(options = nil) options ||= Options.new options.models.each do |model_name| Seed.new(model_name, options).dump end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seed_gimmick-0.0.2 | lib/seed_gimmick.rb |