unidom-party 0.4.1 → 0.5
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/party/party_relation.rb +3 -2
- data/app/models/unidom/party/person.rb +0 -25
- data/lib/unidom/party/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: 97b432b57919bab9692e6d5951d89fac33f088a3
|
4
|
+
data.tar.gz: 3b71730e437d33d32f8172db2b8219fbb518091d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6febf5cda3542fc747dbfd622b25740f9e19f7f5637540f1b72658e0f269ef3eff84b6b54894ddc7933ad205dd91564604c0e89f41c5eb523a04ab7de7c2fe1
|
7
|
+
data.tar.gz: 2b48dcf14617991d81368cf5a0a7276b4fcd556f228d4270d1d519d846db9b85694a8671a679e119396d43f77b5a4834b8373613504f8ebb649e98cc6d0b0349
|
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
class Unidom::Party::PartyRelation < ActiveRecord::Base
|
4
4
|
|
5
|
-
self.table_name = '
|
5
|
+
self.table_name = 'unidom_party_relations'
|
6
6
|
|
7
|
-
validates :
|
7
|
+
validates :grade, presence: true, numericality: { integer_only: true }
|
8
|
+
validates :priority, presence: true, numericality: { integer_only: true }
|
8
9
|
|
9
10
|
belongs_to :source_party, polymorphic: true
|
10
11
|
belongs_to :target_party, polymorphic: true
|
@@ -9,31 +9,6 @@ class Unidom::Party::Person < ActiveRecord::Base
|
|
9
9
|
has_many :source_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :target_party
|
10
10
|
has_many :target_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :source_party
|
11
11
|
|
12
|
-
#has_many :source_party_linkings, class_name: 'Party::PartyLinking', as: :source_party
|
13
|
-
#has_many :linked_shops_as_source, through: :source_party_linkings, source: :target_party, source_type: 'Party::Shop'
|
14
|
-
#has_many :linked_people_as_source, through: :source_party_linkings, source: :target_party, source_type: 'Party::Person'
|
15
|
-
|
16
|
-
#has_many :target_party_linkings, class_name: 'Party::PartyLinking', as: :target_party
|
17
|
-
#has_many :linked_shops_as_target, through: :source_party_linkings, source: :source_party, source_type: 'Party::Shop'
|
18
|
-
#has_many :linked_people_as_target, through: :source_party_linkings, source: :source_party, source_type: 'Party::Person'
|
19
|
-
|
20
|
-
#has_many :allocatings, class_name: 'Property::Allocating', as: :allocatee
|
21
|
-
#has_many :allocated_tables, through: :allocatings, source: :allocated, source_type: 'Property::Table'
|
22
|
-
|
23
|
-
#has_many :receptions, class_name: 'Visitor::Reception', as: :party
|
24
|
-
#has_many :recepted_users, through: :receptions, source: :visitor, source_type: 'Visitor::User'
|
25
|
-
|
26
|
-
#has_many :contact_subscriptions, class_name: 'Contact::ContactSubscription', as: :subscriber
|
27
|
-
#has_many :china_mobile_phone_numbers, through: :contact_subscriptions, source: :contact, source_type: 'Contact::ChinaMobilePhoneNumber'
|
28
|
-
|
29
|
-
#has_many :target_linkings, class_name: 'Party::PartyLinking', as: :source_party
|
30
|
-
#has_many :target_people, through: :target_linkings, source: :target_party, source_type: 'Party::Person'
|
31
|
-
#has_many :target_shops, through: :target_linkings, source: :target_party, source_type: 'Party::Shop'
|
32
|
-
|
33
|
-
#has_many :source_linkings, class_name: 'Party::PartyLinking', as: :target_party
|
34
|
-
#has_many :source_people, through: :source_linkings, source: :source_party, source_type: 'Party::Person'
|
35
|
-
#has_many :source_shops, through: :source_linkings, source: :source_party, source_type: 'Party::Shop'
|
36
|
-
|
37
12
|
include Unidom::Common::Concerns::ModelExtension
|
38
13
|
|
39
14
|
end
|
data/lib/unidom/party/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.5'
|
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-03-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|