workflow-join 0.3.1 → 0.3.2
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/lib/workflow/join/active_record.rb +11 -11
- data/lib/workflow/join/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: 0ec8cbd078c5ab4a8d6ba4a37224dd2811fc8661
|
|
4
|
+
data.tar.gz: 0119f2478781b2f461c43019bd40aa0cf841d1f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f81f773720f348a884d39682f6c76a9a205340b404bde58689c5e486a46c4a19defca98375d28a40e274387273e0abcd69a6e599ac3b5b056616880e9100f315
|
|
7
|
+
data.tar.gz: 117b30630eba091562b9f76aa178b1239fd6ccef2df0356fcf3ff0a8830f2c3a6b674482987838a7b0b25e6a2c2ec4430eb4e8d1e35822b1e15a96b87e46b010
|
|
@@ -23,19 +23,19 @@ module Workflow
|
|
|
23
23
|
fail LoadError, "This module might be included in ActiveRecord::Base instances only (#{base} given.)" \
|
|
24
24
|
unless model < ::ActiveRecord::Base
|
|
25
25
|
|
|
26
|
-
unless ENSURE_COLUMNS.call(model, :workflow_pending_transitions, :workflow_pending_callbacks)
|
|
27
|
-
|
|
26
|
+
# unless ENSURE_COLUMNS.call(model, :workflow_pending_transitions, :workflow_pending_callbacks)
|
|
27
|
+
# fail LoadError, <<-MSG
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
# =======================================================================================
|
|
30
|
+
# This is an intended fail, next time the class is requested, it’ll be loaded properly!
|
|
31
|
+
# To avoid this one should explicitly specify columns:
|
|
32
|
+
# — workflow_pending_transitions,
|
|
33
|
+
# — workflow_pending_callbacks
|
|
34
|
+
# in all models, that are willing to use joined workflows.
|
|
35
|
+
# =======================================================================================
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
end
|
|
37
|
+
# MSG
|
|
38
|
+
# end
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workflow-join
|
|
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
|
- Aleksei Matiushkin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|