services 6.0.4 → 6.0.5
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: c3085ae1c41a776a15e333d0afbf240b7509f5921f4e75ceada90e834a8c6e05
|
4
|
+
data.tar.gz: 1976cad3543d7f1bb9f5b40507dddde8fa3f805ae189b74a68e843cb68b6b036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b633bc24e6c9ede452b76301a1f2fb8478160320fe8e982c0527ee078c8d879375e3f610b3247754853aa0c4faa9a043de865ab70b1b6cccc9eadf446fb1f5ab
|
7
|
+
data.tar.gz: 2bf7df9ef18291cf448a8a6af7e5e850af1027ba1cbcb223127e021e0b31e5191b988db6a882f3a9a51482adae4818b957c8352e52b07c0361ba0ff1d1940234
|
data/lib/services/query.rb
CHANGED
@@ -30,7 +30,7 @@ module Services
|
|
30
30
|
object_table_id = "#{object_class.table_name}.id"
|
31
31
|
|
32
32
|
special_conditions = conditions.extract!(:id_not, :order, :limit, :page, :per_page)
|
33
|
-
special_conditions[:order]
|
33
|
+
special_conditions[:order] = object_table_id unless special_conditions.has_key?(:order)
|
34
34
|
|
35
35
|
scope = conditions.delete(:scope).try(:dup) || object_class.public_send(ActiveRecord::VERSION::MAJOR == 3 ? :scoped : :all)
|
36
36
|
scope = scope.where(object_table_id => ids) unless ids.empty?
|
data/lib/services/version.rb
CHANGED