Sha256: c2f0a28e99f1bf05de364bc1d5abc929ad28636cce7b38dad92a19d9693cc67d

Contents?: true

Size: 328 Bytes

Versions: 86

Compression:

Stored size: 328 Bytes

Contents

module Addresses::Subcontinents::Base
  extend ActiveSupport::Concern

  included do
    self.data = JSON.parse(File.read(File.expand_path("../../../../../config/addresses/countries.json", File.dirname(__FILE__)))).map { |row| {id: row["subregion"], name: row["subregion"]} }.select { |row| row[:name].present? }.uniq
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
bullet_train-1.6.6 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.6.5 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.6.4 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.6.3 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.6.2 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.6.1 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.6.0 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.5.2 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.5.1 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.5.0 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.11 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.10 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.9 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.8 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.7 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.6 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.5 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.4 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.3 app/models/concerns/addresses/subcontinents/base.rb
bullet_train-1.4.2 app/models/concerns/addresses/subcontinents/base.rb