Class: Mobility::Plugins::Arel::Nodes::JsonbContainer
- Inherits:
-
Jsonb
- Object
- JsonbDashDoubleArrow
- Jsonb
- Mobility::Plugins::Arel::Nodes::JsonbContainer
- Defined in:
- lib/mobility/plugins/arel/nodes/pg_ops.rb
Instance Method Summary collapse
- #eq(other) ⇒ Object
-
#initialize(column, locale, attr) ⇒ JsonbContainer
constructor
A new instance of JsonbContainer.
Methods inherited from Jsonb
Constructor Details
#initialize(column, locale, attr) ⇒ JsonbContainer
Returns a new instance of 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 |