Class: AssociateJsonb::ArelNodes::Jsonb::BindableOperator
- Inherits:
-
Operator
- Object
- Arel::Nodes::InfixOperation
- Operator
- AssociateJsonb::ArelNodes::Jsonb::BindableOperator
- Defined in:
- lib/associate_jsonb/arel_nodes/jsonb/bindable_operator.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Operator
Instance Method Summary collapse
Methods inherited from Operator
Constructor Details
This class inherits a constructor from AssociateJsonb::ArelNodes::Jsonb::Operator
Instance Method Details
#right_side ⇒ Object
8 9 10 11 12 13 |
# File 'lib/associate_jsonb/arel_nodes/jsonb/bindable_operator.rb', line 8 def right_side return name if name.is_a?(::Arel::Nodes::BindParam) || name.is_a?(::Arel::Nodes::SqlLiteral) ::Arel::Nodes::SqlLiteral.new("'#{name.as_json}'") end |