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 +4 -4
- data/app/models/unidom/geo/china/region.rb +3 -2
- data/lib/unidom/geo/china/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c19904dace0585855d7b4eaab8f6aeafe5927de6
|
4
|
+
data.tar.gz: e3b4b154e6d62ffd228469132fa4d432745dbfa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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-
|
11
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|