unidom-certificate-china 0.5 → 0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e791aa5a5398e2d83aa4772c34c8d4d8878a635a
|
4
|
+
data.tar.gz: 94ac4d0cfd12ccd42f7eadf092c2c68fb5ace351
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235ccb5216d1eb79f155023d7b3d18c4e9312d24248878ccc3095c9b3f1d3e51e28583f2833cb244787eb76666f451d675b08b29e6b7af6f039a440723993163
|
7
|
+
data.tar.gz: 7c28c5f4b03061faf2388201427aaaf533df56509fc0245da53091daec2d6dc59f9e1c979a4bf08ed320c5cf61309520151c087cc7783e51f191fb8ad2f702c6
|
@@ -16,6 +16,8 @@ class Unidom::Certificate::China::BusinessLicense < ActiveRecord::Base
|
|
16
16
|
validates :legal_representative_name, presence: true, length: { in: 2..columns_hash['legal_representative_name'].limit }
|
17
17
|
validates :issuing_authority_name, allow_blank: true, length: { in: 2..columns_hash['issuing_authority_name'].limit }
|
18
18
|
|
19
|
+
has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certification
|
20
|
+
|
19
21
|
scope :registration_number_is, ->(registration_number) { where registration_number: registration_number }
|
20
22
|
|
21
23
|
end
|
@@ -8,9 +8,11 @@ class Unidom::Certificate::China::IdentityCard < ActiveRecord::Base
|
|
8
8
|
|
9
9
|
include Unidom::Common::Concerns::ModelExtension
|
10
10
|
|
11
|
-
validates :
|
12
|
-
|
13
|
-
validates :
|
11
|
+
validates :identification_number, presence: true, length: { is: self.columns_hash['identification_number'].limit }, format: FORMAT_VALIDATION_REGEX
|
12
|
+
|
13
|
+
validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
|
14
|
+
validates :address, presence: true, length: { in: 2..self.columns_hash['address'].limit }
|
15
|
+
|
14
16
|
validates :issuing_authority_name, allow_blank: true, length: { in: 2..self.columns_hash['issuing_authority_name'].limit }
|
15
17
|
|
16
18
|
has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certification
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-certificate-china
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.6'
|
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-04-
|
11
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|