arel-extensions 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/arel-extensions.gemspec +1 -1
- data/lib/arel/extensions.rb +1 -0
- data/lib/arel/visitors/sunstone_extensions.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f5c8d435e6378cdaf63398e946ea88c0404589c
|
4
|
+
data.tar.gz: c2db5c4c9cdc751ab836f241aa1f20232da98aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93ef06c1a1fd9f451cb3b4914c88e82a982ce923e2ba70e539d6ef2882ea9e3d042f8c9994fbbca9d225856ad0bd7933ea446ec69224515550c0fbde602fbc0f
|
7
|
+
data.tar.gz: 9fd582e8334735fdd142ffbf3745010eb1c4b0f1661f1a77e0ca11acb6516fe1d8fa894f7c82886475b4dca284c09d91024ef78413df4782a11dec1f3f584f4f
|
data/arel-extensions.gemspec
CHANGED
data/lib/arel/extensions.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require File.expand_path('../nodes/overlaps', __FILE__)
|
2
2
|
require File.expand_path('../nodes/contains', __FILE__)
|
3
|
+
require File.expand_path('../nodes/excludes', __FILE__)
|
3
4
|
require File.expand_path('../nodes/contained_by', __FILE__)
|
4
5
|
require File.expand_path('../array_predications', __FILE__)
|
5
6
|
Arel::Attributes::Attribute.include(Arel::ArrayPredications)
|
@@ -16,7 +16,7 @@ module Arel
|
|
16
16
|
|
17
17
|
def visit_Arel_Nodes_Excludes o, collector
|
18
18
|
key = visit(o.left, collector)
|
19
|
-
value = { excludes:
|
19
|
+
value = { excludes: o.left.type_cast_for_database(o.right) }
|
20
20
|
|
21
21
|
if key.is_a?(Hash)
|
22
22
|
add_to_bottom_of_hash(key, value)
|