lib/card/query/interpretation.rb in card-1.93.2 vs lib/card/query/interpretation.rb in card-1.93.3
- old
+ new
@@ -49,19 +49,19 @@
end
def clause_to_hash clause
case clause
when Hash then clause
- when String, Cardname then { key: clause.to_name.key }
+ when String then { key: clause.to_name.key }
when Integer then { id: clause }
else raise Card::Error::BadQuery, "Invalid query args #{clause.inspect}"
end
end
def normalize_value val
case val
when Integer, Float, Symbol, Hash then val
- when String, Cardname then normalize_string_value val
+ when String then normalize_string_value val
when Array then val.map { |v| normalize_value v }
else raise Card::Error::BadQuery, "unknown WQL value type: #{val.class}"
end
end