lib/mobility/backends/sequel/jsonb/query_methods.rb in mobility-0.4.0 vs lib/mobility/backends/sequel/jsonb/query_methods.rb in mobility-0.4.1

- old
+ new

@@ -21,11 +21,11 @@ end end private - def contains_value(key, value, locale) - build_op(key).contains({ locale => value }.to_json) + def matches(key, value, locale) + build_op(key)[locale] =~ value.to_json end def has_locale(key, locale) build_op(key).has_key?(locale) end