azahara_schema 0.3.15 → 0.3.16

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: 495d866bd748435b34395126df1828c36b7007e54f417cdc1942162cfa3a5e80
4
- data.tar.gz: 946b3a37981294e6228afe80cfe7f522a06f57acbe87211e4225c55f2aeb296a
3
+ metadata.gz: 80cbb95f3a0f5879a4f6f7fb93bd5bbe442c8f6a8912c520c25a95a089813c80
4
+ data.tar.gz: 0e2be0608de15b5b501eb5fc7002d188da53f1010c63c9f7f476e02cbd560beb
5
5
  SHA512:
6
- metadata.gz: e0bec31b143cafec4fbd8cac7cc5d40a8d5b4826146cbef22160f54b2a42290ea866b38fd965ed810907be1ee86fba11022f20d8969345fef3007098ee38fbee
7
- data.tar.gz: c45bd2cb380b71553541d784a37f9bdde786e83b96c8fd69d62249c8114e8c02f441487470fff393431b4d25969bac1bde2778a3f7743319e81b085724b5f8ee
6
+ metadata.gz: c4efe760efa9ef9b321a6217ad7e80c971982148fbed05e6f113b3bb49f45255d0718a4f619a2c61fa07071e21835bbb86509fe97ac26c40e85eff1e1a8449bc
7
+ data.tar.gz: 1ad60cea1d810a714c2f0023974d69b51af79cef1958f13376d261829efed553fe881d4aaeb967e861611731361a07306631b68be4fe54461ea69a070d1f339d
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![pipeline status](https://git.servis.justice.cz/libraries/azahara_schema/badges/master/pipeline.svg)](https://git.servis.justice.cz/libraries/azahara_schema/commits/master)
2
+ [![Gem Version](https://badge.fury.io/rb/azahara_schema.svg)](https://badge.fury.io/rb/azahara_schema)
2
3
 
3
4
  # AzaharaSchema
4
5
 
@@ -98,7 +98,7 @@ module AzaharaSchema
98
98
  end
99
99
 
100
100
  def sort
101
- @sort ||= default_sort
101
+ @sort ||= ActiveSupport::OrderedHash.new.merge!(default_sort)
102
102
  end
103
103
 
104
104
  # DEFAULTS
@@ -282,7 +282,7 @@ module AzaharaSchema
282
282
  columns.each do |col|
283
283
  scope = col.add_preload(scope)
284
284
  end
285
- sort.each do |name, order|
285
+ sort.invert.each do |name, order|
286
286
  att = attribute(name)
287
287
  scope = att.add_sort(scope, order) if att
288
288
  end
@@ -1,3 +1,3 @@
1
1
  module AzaharaSchema
2
- VERSION = '0.3.15'
2
+ VERSION = '0.3.16'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azahara_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-04 00:00:00.000000000 Z
11
+ date: 2018-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails