Sha256: 2d41fdc039901c4baa2cebff94e02b93afc1779678a4df4e17c72e2dc8542639

Contents?: true

Size: 319 Bytes

Versions: 92

Compression:

Stored size: 319 Bytes

Contents

module Addresses::Continents::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["region"], name: row["region"]} }.select { |row| row[:name].present? }.uniq
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
bullet_train-1.6.32 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.31 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.30 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.29 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.28 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.27 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.26 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.25 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.24 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.23 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.22 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.21 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.20 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.19 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.18 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.17 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.16 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.15 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.14 app/models/concerns/addresses/continents/base.rb
bullet_train-1.6.13 app/models/concerns/addresses/continents/base.rb