pg_rails 7.1.3 → 7.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97005ad0cfff2f7088c2dbfe667e1fc8339b8873c3935580d374069fdda0c463
|
4
|
+
data.tar.gz: 938afdb82665e744d1c352e5879523329064bb5cadc7c9becdd88bb6aa85505e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce4389f063db55a1761fa50c4335a5b7c98825222b7c541accd5f3e8b4e65c13f9a7ebe3a65787b7c90219f90f11370136faf1efb98f2b2996d9047fc8707e86
|
7
|
+
data.tar.gz: 6a510173f026e874693cc471f9eb251b733164f3cfc1fd72f105b9b556e7cf918962340584e1479d47d130ba723d0c5642a97f3b8097f417c84d7bf495a53c97
|
@@ -318,7 +318,8 @@ module PgEngine
|
|
318
318
|
scope = if scope.model.respond_to? "order_by_#{field}"
|
319
319
|
scope.send "order_by_#{field}", direction
|
320
320
|
else
|
321
|
-
scope.
|
321
|
+
sql = scope.model.arel_table[field.to_sym].send(direction).to_sql + ' nulls last'
|
322
|
+
scope.order(sql)
|
322
323
|
end
|
323
324
|
instance_variable_set(:@field, field)
|
324
325
|
instance_variable_set(:@direction, direction)
|
data/pg_rails/lib/version.rb
CHANGED