class Praxis::Extensions::AttributeFiltering::QuasiSqlLiteral

Helper class that can present an SqlLiteral string which we have already quoted … but! that can properly provide a “to_sym” that has the value unquoted This is necessary as (the latest AR code):

If we pass a normal SqlLiteral, instead of our wrapper, without quoting the table, the current AR code will never quote it to form the SQL string, as it’s already a literal…so our “/” type separators as names won’t work without quoting.

Public Class Methods

new(quoted:, symbolized:) click to toggle source
Calls superclass method
# File lib/praxis/extensions/attribute_filtering/active_record_filter_query_builder.rb, line 16
def initialize(quoted:, symbolized:)
  @symbolized = symbolized
  super(quoted)
end

Public Instance Methods

to_sym() click to toggle source
# File lib/praxis/extensions/attribute_filtering/active_record_filter_query_builder.rb, line 21
def to_sym
  @symbolized
end