Sha256: 639e900245cf714e3a2cb20f519c9f4f5e3bb2ff65041b59c8dd0af43e99aacf
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'arel/predications' module Arel module Predications def contained_within(other) Nodes::ContainedWithin.new self, Nodes.build_quoted(other, self) end def contained_within_or_equals(other) Nodes::ContainedWithinEquals.new self, Nodes.build_quoted(other, self) end def contains(other) Nodes::Contains.new self, Nodes.build_quoted(other, self) end def contained_in_array(other) Nodes::ContainedInArray.new self, Nodes.build_quoted(other, self) end def contains_or_equals(other) Nodes::ContainsEquals.new self, Nodes.build_quoted(other, self) end def overlap(other) Nodes::Overlap.new self, Nodes.build_quoted(other, self) end def any(other) any_tags_function = Arel::Nodes::NamedFunction.new('ANY', [self]) Arel::Nodes::Equality.new(Nodes.build_quoted(other, self), any_tags_function) end def all(other) any_tags_function = Arel::Nodes::NamedFunction.new('ALL', [self]) Arel::Nodes::Equality.new(Nodes.build_quoted(other, self), any_tags_function) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postgres_ext-3.0.1 | lib/postgres_ext/arel/4.2/predications.rb |