Sha256: 990a820fb2f8d7287b5cac5a42eaef7faca34742b7e072a2c7fb70ff9f62dd90

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

class Country < ActiveRecord::Base
  def self.data_seeder_line(line)
    {
      code: line[0,2],
      name: line[3...-1],
    }
  end

  def self.data_seeder_config
    {
      key_attribute: :code
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
data_seeder-0.0.5 test/dummy/app/models/country.rb
data_seeder-0.0.4 test/dummy/app/models/country.rb
data_seeder-0.0.3 test/dummy/app/models/country.rb
data_seeder-0.0.2 test/dummy/app/models/country.rb
data_seeder-0.0.1 test/dummy/app/models/country.rb