class BooleanExpression < Object

  def initialize(value)
    @value = value
  end

  def build_arel(arel_table)
    return @value ? Arel::Nodes::True.new() : Arel::Nodes::False.new()
  end

  TRUE = BooleanExpression.new(true)
  FALSE = BooleanExpression.new(false)

end
class BooleanExpression < Object

  def initialize(value)
    @value = value
  end

  def build_arel(arel_table)
    # return @value ? Arel::Nodes::True.new() : Arel::Nodes::False.new()
    return @value ? 1 : 0
  end

  TRUE = BooleanExpression.new(true)
  FALSE = BooleanExpression.new(false)

end
Use 0/1 for TRUE/FALSE to increase SQLite compatibility
Use 0/1 for TRUE/FALSE to increase SQLite compatibility
