unidom-action 1.4 → 1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/models/unidom/action/concerns/as_acted.rb +0 -2
- data/lib/unidom/action/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: 55cbae24fba8dfd04e3c7ae2055abc41ce26947f
|
|
4
|
+
data.tar.gz: 6b6ca7374601719eddcd68bcc85b73b8d441fc57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb070469362ca1006a2e854041c1fadde8b60e357488db77010aef31349c176e09c66baa33bc4146a925a71a265ac2b9020126946dec4ffae59346bc45dc0c9c
|
|
7
|
+
data.tar.gz: 56fac61e1c0deb33a10245abeedb5028bf6f88187c2a2b11135a3c98f3babab699e85c7564dc28ee2f0cf93fda34dc52ca493f75ee24c0c4fd0d020da07ba13c
|
data/README.md
CHANGED
|
@@ -86,6 +86,7 @@ include Unidom::Action::Concerns::AsStateTransitorParty
|
|
|
86
86
|
The As Acted concern do the following tasks for the includer automatically:
|
|
87
87
|
1. Define the has_many :actings macro as: ``has_many :actings, class_name: 'Unidom::Action::Acting', as: :acted``
|
|
88
88
|
2. Define the #is_acted! method as: ``is_acted!(from: nil, thru: nil, due_to: nil, by: nil, via: nil, at: Time.now, action_code: 'C')``
|
|
89
|
+
3. Define the #is_acted? method as: ``is_acted?(due_to: nil, by: nil, via: nil, at: Time.now, action_code: 'C')``
|
|
89
90
|
|
|
90
91
|
### As Actor Party concern
|
|
91
92
|
|
|
@@ -10,7 +10,6 @@ module Unidom::Action::Concerns::AsActed
|
|
|
10
10
|
actings.create! from_value: from, thru_value: thru, actor_visitor: via, actor_party: by, acted: self, reason: due_to, action_code: action_code, opened_at: at
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
=begin
|
|
14
13
|
def is_acted?(due_to: nil, by: nil, via: nil, at: Time.now, action_code: 'C')
|
|
15
14
|
query = actings.acted_is self
|
|
16
15
|
query = query.acted_via via if via.present?
|
|
@@ -20,7 +19,6 @@ module Unidom::Action::Concerns::AsActed
|
|
|
20
19
|
query = query.valid_at now: at if at.present?
|
|
21
20
|
query = query.alive.exists?
|
|
22
21
|
end
|
|
23
|
-
=end
|
|
24
22
|
|
|
25
23
|
end
|
|
26
24
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unidom-action
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.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-10-
|
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: unidom-common
|