arql 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/arql/definition.rb +8 -4
- data/lib/arql/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: 2f7af1980c009f6041437078a7b84dba13650e0ab830863e4919202c00500d5c
|
4
|
+
data.tar.gz: a7f073340c540117a418c32372e5c15f4e64137884203c6455def54ee8888479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f78949749ba61a27f51b8d4654e4937da950586901561d3bdc478558dcec4a56dd797569cfa0908de075eaec2c654811b98d107a78fa3c6c5807253c61e680
|
7
|
+
data.tar.gz: 7d8b8f8f0f63de906caaecab8732094727469f59c642ed163275f809ea050276976570d0354311b3cf5a81f1658246e7e38b6b114d49c21c644a0da250bd1865
|
data/Gemfile.lock
CHANGED
data/lib/arql/definition.rb
CHANGED
@@ -79,10 +79,14 @@ module Arql
|
|
79
79
|
|
80
80
|
order_column = @options[:order_column]
|
81
81
|
if order_column
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
82
|
+
@models.each do |model|
|
83
|
+
model_class = model[:model]
|
84
|
+
model_class.define_singleton_method(:implicit_order_column) do
|
85
|
+
if column_names.include?(order_column)
|
86
|
+
order_column
|
87
|
+
else
|
88
|
+
nil
|
89
|
+
end
|
86
90
|
end
|
87
91
|
end
|
88
92
|
end
|
data/lib/arql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liu Xiang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mysql2
|