unidom-geo-china 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1c92f850767c75a0164d9a1b6b81c65e6ff79e2
4
- data.tar.gz: 32f44efa198c982b2702f122bd978155f30002f8
3
+ metadata.gz: c19904dace0585855d7b4eaab8f6aeafe5927de6
4
+ data.tar.gz: e3b4b154e6d62ffd228469132fa4d432745dbfa6
5
5
  SHA512:
6
- metadata.gz: d7ee594e199d0c6b5f9db4c2ada6fb0d61758fff2181c34b537d77bbe6b7c0bae4980f6da1bdcc64b4fa4dacfc1ebd1166fd1d82d58d64da512232c85dea6b9e
7
- data.tar.gz: c27633892015ec3ef575d2ec77564ecddbc854c5d37ff91451e762290ccddaf51bea64f3a981e388ae66f4bff45ffad8686138e2c562a0059bc19ecf7ed5a16d
6
+ metadata.gz: 4773966eaa6c75d68a6c321186893deb575d527b5b3a854b91a9bcb037b782d33c5305ddc0a3a202aa6812879ade8aa471adca20871706e26b1b8cf3bc6ca76d
7
+ data.tar.gz: 9c5c243018947ee645d5270401b8c78962202e24125d5b57b5d3933b0e65f96624697d25f1013a36aa1bd4054dd9e87408f40c2feb2c7d24b5d7d96df1fa2b4c
@@ -26,6 +26,7 @@ class Unidom::Geo::China::Region < ActiveRecord::Base
26
26
  self.table_name = 'unidom_china_regions'
27
27
 
28
28
  include Unidom::Common::Concerns::ModelExtension
29
+ include Unidom::Geo::Concerns::AsRegion
29
30
 
30
31
  validates :numeric_code, numericality: { integer_only: true }
31
32
  validates :alphabetic_code, allow_blank: true, length: { minimum: 2 }
@@ -33,8 +34,8 @@ class Unidom::Geo::China::Region < ActiveRecord::Base
33
34
 
34
35
  belongs_to :scheme, polymorphic: true
35
36
 
36
- has_many :locations, class_name: 'Unidom::Geo::Location', as: :region
37
- has_many :locatings, through: :locations, source: :locatings
37
+ #has_many :locations, class_name: 'Unidom::Geo::Location', as: :region
38
+ #has_many :locatings, through: :locations, source: :locatings
38
39
 
39
40
  has_many :towns, class_name: 'Unidom::Geo::China::Town'
40
41
 
@@ -1,7 +1,7 @@
1
1
  module Unidom
2
2
  module Geo
3
3
  module China
4
- VERSION = '0.3.1'.freeze
4
+ VERSION = '0.3.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-geo-china
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common