class Babik::Selection::Operation::StartsWith

Constants

SQL_OPERATOR

Public Instance Methods

_init_sql_operation() click to toggle source
# File lib/babik/queryset/lib/selection/operation/operations.rb, line 129
def _init_sql_operation
  escaped_value = self.class.escape("#{@value}%")
  @sql_operation = @sql_operation_template.sub('?field', @field).sub('?value', escaped_value)
end