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 +4 -4
- data/README.md +1 -0
- data/lib/azahara_schema/schema.rb +2 -2
- data/lib/azahara_schema/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80cbb95f3a0f5879a4f6f7fb93bd5bbe442c8f6a8912c520c25a95a089813c80
|
4
|
+
data.tar.gz: 0e2be0608de15b5b501eb5fc7002d188da53f1010c63c9f7f476e02cbd560beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|