Sha256: cb9d3c5161dee0db6f7a62a1b516255ac80c000e13f1a95266c55f2311b64463

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

module FastSeeder
  module Seeders
    class CsvSeeder < BaseSeeder
      def initialize(model_class, declared_columns, default_values, csv_file)
	super(model_class, declared_columns, default_values)
	@csv_file = File.join(FastSeeder.seeds_path, csv_file)
      end


      private

      def specific_values
	CSV.read(@csv_file)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fast_seeder-0.1.0 lib/fast_seeder/seeders/csv_seeder.rb
fast_seeder-0.0.2 lib/fast_seeder/seeders/csv_seeder.rb
fast_seeder-0.0.1 lib/fast_seeder/seeders/csv_seeder.rb