Sha256: 171f3170027a2e170d770fd2e4af9c7df71f59400b2a76f7b1cf5095c7554f08

Contents?: true

Size: 277 Bytes

Versions: 86

Compression:

Stored size: 277 Bytes

Contents

module Addresses::Countries::Base
  extend ActiveSupport::Concern

  included do
    self.data = JSON.parse(File.read(File.expand_path("../../../../../config/addresses/countries.json", File.dirname(__FILE__))))

    has_many :regions, class_name: "Addresses::Region"
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
bullet_train-1.11.0 app/models/concerns/addresses/countries/base.rb
bullet_train-1.10.0 app/models/concerns/addresses/countries/base.rb
bullet_train-1.9.0 app/models/concerns/addresses/countries/base.rb
bullet_train-1.8.5 app/models/concerns/addresses/countries/base.rb
bullet_train-1.8.4 app/models/concerns/addresses/countries/base.rb
bullet_train-1.8.3 app/models/concerns/addresses/countries/base.rb
bullet_train-1.8.2 app/models/concerns/addresses/countries/base.rb
bullet_train-1.8.1 app/models/concerns/addresses/countries/base.rb
bullet_train-1.8.0 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.23 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.22 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.21 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.20 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.19 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.18 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.17 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.16 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.15 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.14 app/models/concerns/addresses/countries/base.rb
bullet_train-1.7.13 app/models/concerns/addresses/countries/base.rb