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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0939ceb0070d909cdcad849a8f0d58c205ed95a3143595e3debfa9313fac2466'
4
- data.tar.gz: d53563cd4c57b46b35ecc7eb3749dfddeb62d53ce671571ea49ad5572ab01d1d
3
+ metadata.gz: 2f7af1980c009f6041437078a7b84dba13650e0ab830863e4919202c00500d5c
4
+ data.tar.gz: a7f073340c540117a418c32372e5c15f4e64137884203c6455def54ee8888479
5
5
  SHA512:
6
- metadata.gz: edf5bfe566b9908251e3204fdd8fa08e30a7aa40cd0df722f7f9aa4f0092536964b2b244ed20ca1b289e10ea97df7d1c44a765b24ef1943f6850f17d670c5010
7
- data.tar.gz: 444ed7209ec62243a8ca3791ede58096853ab3af37fac1016c29944b2b609788d35d2edb5b3feb9c8955d08e45cc5cbc520f1f2325735361526d53dd4d98c718
6
+ metadata.gz: b9f78949749ba61a27f51b8d4654e4937da950586901561d3bdc478558dcec4a56dd797569cfa0908de075eaec2c654811b98d107a78fa3c6c5807253c61e680
7
+ data.tar.gz: 7d8b8f8f0f63de906caaecab8732094727469f59c642ed163275f809ea050276976570d0354311b3cf5a81f1658246e7e38b6b114d49c21c644a0da250bd1865
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arql (0.4.11)
4
+ arql (0.4.12)
5
5
  activerecord (>= 6.1.5, < 7.1.0)
6
6
  activesupport (>= 6.1.5, < 7.1.0)
7
7
  caxlsx (~> 3.3.0)
@@ -79,10 +79,14 @@ module Arql
79
79
 
80
80
  order_column = @options[:order_column]
81
81
  if order_column
82
- Thread.new do
83
- @models.each do |model|
84
- model_class = model[:model]
85
- model_class.implicit_order_column = order_column if model_class.column_names.include?(order_column)
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
@@ -1,3 +1,3 @@
1
1
  module Arql
2
- VERSION = "0.4.11"
2
+ VERSION = "0.4.12"
3
3
  end
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.11
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-09-20 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2