record-collection 0.1.1424579151 → 0.1.1424579963
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/record-collection.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76245a0d238967761406c7d3b901341ea4aee480
|
4
|
+
data.tar.gz: 25931ece817bc946164a8a6c72001d1e2128eb21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c57d29096fecaac4296d5bc193268d254ca1637e418deb57f8c1c90610e1679f5bf4860bb02c3865d71deee1f43dfb38350201100870634fdb18470b7bf825e
|
7
|
+
data.tar.gz: 9b65736723f78888f686ef2c6758539f5199fec0cdd5d4f2e7aee02d7ecc07fcf0db7a51364b926d6ba448442e547f51dc6da33c776af3e4997e17830a803087
|
data/lib/record-collection.rb
CHANGED
@@ -25,7 +25,7 @@ class RecordCollection
|
|
25
25
|
|
26
26
|
def is_limited_by?(scope)
|
27
27
|
# because ActiveRecord::Relations do not implement hashing correctly, we must do case by case equality
|
28
|
-
scopes.any? { |s| s == scope }
|
28
|
+
base_scope == scope || scopes.any? { |s| s == scope }
|
29
29
|
end
|
30
30
|
|
31
31
|
alias limited_by? is_limited_by?
|