acts_as_living 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +4 -0
- data/lib/acts_as_living/scopes_definer.rb +3 -7
- 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: 9822b425e62e24627e57fae895b68fff7c1b0472257c20a06207014cb95b38d1
|
4
|
+
data.tar.gz: f6baf7c93a6ad1ac060aefab50f232d7fe6057df4f4cde1c12dc4cc98294c378
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aa1299dc9875da2f207389013a46e6924f96dd3366a2415b2100e31018570b52278571c4826192dfd23fd94912849f5af6f6497d2553f9328adf1376faa7ffe
|
7
|
+
data.tar.gz: 7b441512986cd8436cdf6eeb8d78767b3d8297fb37b2f67b45b96222da50ac4e4da580bcd02d292647676e842eb2486416eed5fda7dbf8aed4684e38e72e6a3f
|
data/Changelog.md
CHANGED
@@ -10,13 +10,9 @@ module ActsAsLiving::ScopesDefiner
|
|
10
10
|
scope :cancelled, -> { where('stage < 0') }
|
11
11
|
|
12
12
|
@phases.each do |phase, delimiters|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
scope phase, lambda {
|
17
|
-
where('stage >= ? AND stage <= ?', stages[delimiters.first], stages[delimiters.second])
|
18
|
-
}
|
19
|
-
end
|
13
|
+
scope phase, lambda {
|
14
|
+
where(stage: delimiters)
|
15
|
+
}
|
20
16
|
end
|
21
17
|
end
|
22
18
|
end
|