active_tools 0.0.13 → 0.0.14
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d8d93fd9b24a933ceb209c7f2bf932ed3d6b82f
|
4
|
+
data.tar.gz: b47e31a3a7aaf0289737feef204b2b824f88ce5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66691f686808c28d4e1d1b18f397d3bbd6d57a1cad0d992fab602bc3493b9611d562a87ca10854560d34cc8e4caf3f40a0182ddc5ff74b5e08ec1250f1b7112d
|
7
|
+
data.tar.gz: f79af52015bd434b7135870f203df69c81f24400ed279eca7ee2089f51d7f2d3503f4644dfea4834dd17eb6594afab9709b973e3bb7c2ffe41be3c2f8f709e02
|
@@ -12,6 +12,9 @@ module ActiveTools
|
|
12
12
|
sql_clause = concat_array.present? ? concat_array.join(" #{operator} ") : nil
|
13
13
|
[(round && concat_array.size > 1) ? "(#{sql_clause})" : sql_clause, *((self[1..-1]||[])+(conditions[1..-1]||[]))]
|
14
14
|
end
|
15
|
+
def concat_as_condition_with!(*args)
|
16
|
+
replace(concat_as_condition_with(*args))
|
17
|
+
end
|
15
18
|
end
|
16
19
|
::Array.send(:include, ArrayExtension)
|
17
20
|
end
|
data/lib/active_tools/version.rb
CHANGED