azahara_schema 0.3.16 → 0.3.17

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: 80cbb95f3a0f5879a4f6f7fb93bd5bbe442c8f6a8912c520c25a95a089813c80
4
- data.tar.gz: 0e2be0608de15b5b501eb5fc7002d188da53f1010c63c9f7f476e02cbd560beb
3
+ metadata.gz: dd4b953ec9e87bd60e50c5f7cf0d8e38e457f2264716ce7f9d6c55b6090af1ec
4
+ data.tar.gz: d6810844b4ab94e4ede45ca30175a22b496e755215361510f65dc9dacf8086fa
5
5
  SHA512:
6
- metadata.gz: c4efe760efa9ef9b321a6217ad7e80c971982148fbed05e6f113b3bb49f45255d0718a4f619a2c61fa07071e21835bbb86509fe97ac26c40e85eff1e1a8449bc
7
- data.tar.gz: 1ad60cea1d810a714c2f0023974d69b51af79cef1958f13376d261829efed553fe881d4aaeb967e861611731361a07306631b68be4fe54461ea69a070d1f339d
6
+ metadata.gz: cfa4987a5433a20fa7ccd3ebdd0b0cbf2acda074004148458f771bbb62e28a407039ad6eb1d23603085fd91a106e3365cb65cb2d4f60282d80d66d13c600a28c
7
+ data.tar.gz: a68a29b0686450a30e1289a696c23f570a218f4b5ecad094ea574d00048ba3a57df14e2c417cdd2640d9745d0cd5d897aac7f2c8198c7c28f809d6e33f277e03
@@ -282,9 +282,9 @@ module AzaharaSchema
282
282
  columns.each do |col|
283
283
  scope = col.add_preload(scope)
284
284
  end
285
- sort.invert.each do |name, order|
285
+ sort.keys.reverse.each do |name|
286
286
  att = attribute(name)
287
- scope = att.add_sort(scope, order) if att
287
+ scope = att.add_sort(scope, sort[name]) if att
288
288
  end
289
289
  scope = scope.offset(offset) if offset
290
290
  scope = scope.limit(limit) if limit
@@ -1,3 +1,3 @@
1
1
  module AzaharaSchema
2
- VERSION = '0.3.16'
2
+ VERSION = '0.3.17'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azahara_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr