Class: Mobility::Plugins::Arel::Nodes::JsonbContainer
- Inherits:
-
Jsonb
- Object
- JsonbDashDoubleArrow
- Jsonb
- Mobility::Plugins::Arel::Nodes::JsonbContainer
show all
- Defined in:
- lib/mobility/plugins/arel/nodes/pg_ops.rb
Instance Method Summary
collapse
Methods inherited from Jsonb
#to_dash_arrow, #to_question
Constructor Details
#initialize(column, locale, attr) ⇒ JsonbContainer
73
74
75
76
|
# File 'lib/mobility/plugins/arel/nodes/pg_ops.rb', line 73
def initialize column, locale, attr
@column, @locale = column, locale
super(JsonbDashArrow.new(column, locale), attr)
end
|
Instance Method Details
#eq(other) ⇒ Object
78
79
80
|
# File 'lib/mobility/plugins/arel/nodes/pg_ops.rb', line 78
def eq other
other.nil? ? super.or(JsonbQuestion.new(@column, @locale).not) : super
end
|