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: a0201fdba3d947f57909f521dcf3b02133bec417
4
- data.tar.gz: 80157e9273b0359769f8008c3537d908b4a75885
3
+ metadata.gz: 5d8d93fd9b24a933ceb209c7f2bf932ed3d6b82f
4
+ data.tar.gz: b47e31a3a7aaf0289737feef204b2b824f88ce5b
5
5
  SHA512:
6
- metadata.gz: 692f52269b9f52d10e061d31821f695b896789b34d3b2fdfdb3014c389f7bd5c6a7e86f6a5223efb90b9db56c2ba4ae1ebe5808699e8b8b59361cd439cc5e2d8
7
- data.tar.gz: 3be146c05980f3daaedf5beac48763afe9429dd35d4cd0883268ccb8b61c085ab493852a960a9cc0dd18f0bff2b418f69277690c34a04891c71aab77587064c8
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
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon