Updated

lib / arel_extensions.rb

A
53 lines of codes
9 methods
1.1 complexity/method
2 churn
9.6 complexity
0 duplications
module Arel module Nodes class Contained < Arel::Nodes::Binary
  1. Arel::Nodes::Contained has no descriptive comment
def operator "<@" end end class Contains < Arel::Nodes::Binary
  1. Arel::Nodes::Contains has no descriptive comment
def operator "@>" end end class Overlaps < Arel::Nodes::Binary
  1. Arel::Nodes::Overlaps has no descriptive comment
def operator "&&" end end end module Predications
  1. Arel::Predications has no descriptive comment
def contained(other) Nodes::Contained.new(self, quoted_node(other)) end def contains(other) Nodes::Contains.new(self, quoted_node(other)) end def overlaps(other) Nodes::Overlaps.new(self, quoted_node(other)) end end module Visitors class PostgreSQL < Arel::Visitors::ToSql
  1. Arel::Visitors::PostgreSQL has no descriptive comment
private def visit_Arel_Nodes_Contained(o, collector)
  1. Arel::Visitors::PostgreSQL takes parameters ['collector', 'o'] to 3 methods Locations: 0 1 2
  2. Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contained has the name 'visit_Arel_Nodes_Contained'
  3. Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contained has the parameter name 'o'
infix_value(o, collector, " <@ ") end def visit_Arel_Nodes_Contains(o, collector)
  1. Arel::Visitors::PostgreSQL takes parameters ['collector', 'o'] to 3 methods Locations: 0 1 2
  2. Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contains has the name 'visit_Arel_Nodes_Contains'
  3. Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contains has the parameter name 'o'
infix_value(o, collector, " @> ") end def visit_Arel_Nodes_Overlaps(o, collector)
  1. Arel::Visitors::PostgreSQL takes parameters ['collector', 'o'] to 3 methods Locations: 0 1 2
  2. Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Overlaps has the name 'visit_Arel_Nodes_Overlaps'
  3. Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Overlaps has the parameter name 'o'
infix_value(o, collector, " && ") end end end end