lib/card/query/attributes.rb in card-1.18.6 vs lib/card/query/attributes.rb in card-1.19.0

- old
+ new

@@ -9,11 +9,11 @@ subquery( c.get_query.merge(unjoined: true, context: c.name) ) else - raise BadQuery, + raise Card::Error::BadQuery, '"found_by" value must be valid Search, ' \ "but #{c.name} is a #{c.type_name}" end end end @@ -28,11 +28,11 @@ end end def match val cxn, val = match_prep val - val.gsub!(/[^#{Card::Name::OK4KEY_RE}]+/, ' ') + val.gsub!(/[^#{Card::Name::OK4KEY_RE}]+/, " ") return nil if val.strip.empty? val_list = val.split(/\s+/).map do |v| name_or_content = [ "replace(#{table_alias}.name,'+',' ')", @@ -44,11 +44,11 @@ end add_condition "(#{val_list.join ' AND '})" end def complete val - no_plus_card = (val =~ /\+/ ? '' : 'and right_id is null') + no_plus_card = (val =~ /\+/ ? "" : "and right_id is null") # FIXME: -- this should really be more nuanced -- # it breaks down after one plus add_condition( " lower(#{table_alias}.name) LIKE" \ @@ -56,10 +56,10 @@ ) end def extension_type _val # DEPRECATED LONG AGO!!! - Rails.logger.info 'using DEPRECATED extension_type in WQL' + Rails.logger.info "using DEPRECATED extension_type in WQL" interpret right_plus: AccountID end end end end