Class: Mobility::Plugins::Arel::Nodes::Hstore

Inherits:
HstoreDashArrow
  • Object
show all
Defined in:
lib/mobility/plugins/arel/nodes/pg_ops.rb

Instance Method Summary collapse

Instance Method Details

#eq(other) ⇒ Object



70
71
72
# File 'lib/mobility/plugins/arel/nodes/pg_ops.rb', line 70

def eq other
  other.nil? ? to_question.not : super
end

#to_questionObject



66
67
68
# File 'lib/mobility/plugins/arel/nodes/pg_ops.rb', line 66

def to_question
  HstoreQuestion.new left, right
end