lib/arel/array_predications.rb in arel-extensions-6.0.0.9 vs lib/arel/array_predications.rb in arel-extensions-6.1.0.rc1

- old
+ new

@@ -1,24 +1,14 @@ module Arel module ArrayPredications - + # Used by both JSON and ARRAY so it doesn't try to cast to array - def contains(value) - Arel::Nodes::Contains.new(self, value) - end - - # Used by both JSON and ARRAY so it doesn't try to cast to array def contained_by(value) Arel::Nodes::ContainedBy.new(self, value) end - + def excludes(value) Arel::Nodes::Excludes.new(self, value) end - - def overlaps(*values) - values = values[0] if values.size == 1 && values[0].is_a?(Array) - Arel::Nodes::Overlaps.new(self, values) - end - + end -end \ No newline at end of file +end