arql 0.1.20 → 0.1.21
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 +13 -0
- data/lib/arql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e66f429bfd374a86cada3192de5f27eb639a393297d9c3ccffcc778e9fba960
|
4
|
+
data.tar.gz: e62183c3d4372a3388aa1252ea0da0ac691abe0cd89c93bc647266ff1851b21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1affdb82cfdc85929ee9a7dc14156feee185fc4cd2e27a07b9353b61d765ec397f328f82381970eaa0f0b923692fb7e568a1cd4dab8ecd4ec799d20a62303936
|
7
|
+
data.tar.gz: c7e5a7c9f47d36ef21c2eed2fd9534bd8ff14025334bc5a10288da42ec99099f19959f935ee736d4b750ded186ca5f9f72d2840510adeca88e8761d88d688529
|
data/Gemfile.lock
CHANGED
data/lib/arql/definition.rb
CHANGED
@@ -26,6 +26,9 @@ module Arql
|
|
26
26
|
self.class.to_upsert_sql([self])
|
27
27
|
end
|
28
28
|
|
29
|
+
included do
|
30
|
+
end
|
31
|
+
|
29
32
|
class_methods do
|
30
33
|
def t
|
31
34
|
table_name = Commands::Table::get_table_name(name)
|
@@ -163,5 +166,15 @@ module Arql
|
|
163
166
|
end
|
164
167
|
end
|
165
168
|
end
|
169
|
+
|
170
|
+
::ActiveRecord::Relation.class_eval do
|
171
|
+
def t
|
172
|
+
records.t
|
173
|
+
end
|
174
|
+
|
175
|
+
def v
|
176
|
+
records.v
|
177
|
+
end
|
178
|
+
end
|
166
179
|
end
|
167
180
|
end
|
data/lib/arql/version.rb
CHANGED