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.
84 85 86 87 |
# File 'lib/mobility/plugins/arel/nodes/pg_ops.rb', line 84 def initialize column, locale, attr @column, @locale = column, locale super(JsonbDashArrow.new(column, locale), attr) end |
Instance Method Details
#eq(other) ⇒ Object
89 90 91 |
# File 'lib/mobility/plugins/arel/nodes/pg_ops.rb', line 89 def eq other other.nil? ? super.or(JsonbQuestion.new(@column, @locale).not) : super end |