acts_as_living 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +5 -0
- data/lib/acts_as_living/scopes_definer.rb +3 -2
- data/lib/acts_as_living/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a3d707aedeaa9b4f50be9387fa7071fcfefb84781400355b7f8db379e9e586
|
4
|
+
data.tar.gz: 2e14f610949e6758b521a1f8c5eac4362eeca7477d7b2db3a66c083c77540dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 555d8a9fddc3d6c334cc0e18fd5f7e038ff2a58a6dfd4fba7ad9dc7ad734291f99ca4c79fd5dc7f44163b5645fb4744d675ddc04e32243beaf2c7a2d737c2a96
|
7
|
+
data.tar.gz: ad7ff2e43e41feec0338c4118e65f4abd1f06a662b5408b804b512a3aedbc603422890b2ef9d9e53cbf192a609ad389cc3427c7e021a0ada754a21f115106025
|
data/Changelog.md
CHANGED
@@ -8,9 +8,10 @@ module ActsAsLiving::ScopesDefiner
|
|
8
8
|
|
9
9
|
scope :cancelled, -> { where('stage < 0') }
|
10
10
|
|
11
|
-
phases.each do |phase,
|
11
|
+
phases.each do |phase, phase_stages|
|
12
12
|
scope phase, lambda {
|
13
|
-
|
13
|
+
phase_stages_integers = phase_stages.map { |stage| stages_enum[stage] }
|
14
|
+
where(stage: phase_stages_integers)
|
14
15
|
}
|
15
16
|
end
|
16
17
|
end
|