services 7.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/services/query.rb +1 -1
- data/lib/services/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: eb51ec8db2b413530af5cdc1c9a95cd81f3a519cd2492dd9664ab4254028520c
|
4
|
+
data.tar.gz: 3c140ae804c3a69105ce4d2ed1d7b0975e224a33a86afe9bd3c539d82ef23c54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db4dc1a984b5c4e7aacbd9e88712b892cdbcd938101190283d68b93ec898261efab50c9cf634cb6ef4e432358e82039b1601be44bdebe4794a90c58b6ca863cd
|
7
|
+
data.tar.gz: 7bcdfb0ae02c57ffe370988bccbfbef46eaa29edf7a7475cefaa32dc08f667bd8f69828b24b269a9bdcc73d74f342e62b553b610e958e38a7cba3647e829c34f
|
data/lib/services/query.rb
CHANGED
@@ -70,7 +70,7 @@ module Services
|
|
70
70
|
scope = scope.where.not(id: v)
|
71
71
|
when /\Acreated_(before|after)\z/
|
72
72
|
operator = $1 == 'before' ? '<' : '>'
|
73
|
-
scope = scope.where("created_at #{operator} ?", v)
|
73
|
+
scope = scope.where("#{object_class.table_name}.created_at #{operator} ?", v)
|
74
74
|
when :order
|
75
75
|
next unless v
|
76
76
|
case v
|
data/lib/services/version.rb
CHANGED