lib/mobility/backends/sequel/key_value.rb in mobility-0.8.0 vs lib/mobility/backends/sequel/key_value.rb in mobility-0.8.1
- old
+ new
@@ -95,10 +95,15 @@
# support for Ruby 2.3 is deprecated
Hash[hash.keys.map { |key| [key, join_type] }]
else
{}
end
+ elsif boolean.op == :'='
+ hash = visit(boolean.args, locale)
+ # TODO: simplify to hash.transform_values { :inner } when
+ # support for Ruby 2.3 is deprecated
+ Hash[hash.keys.map { |key| [key, :inner] }]
elsif boolean.op == :OR
hash = boolean.args.map { |op| visit(op, locale) }.
compact.inject(&:merge)
# TODO: simplify to hash.transform_values { :left_outer } when
# support for Ruby 2.3 is deprecated
@@ -114,10 +119,10 @@
end
end
def visit_sql_identifier(identifier, locale)
if identifier.backend_class == self && identifier.locale == locale
- { identifier.attribute_name => :inner }
+ { identifier.attribute_name => :left_outer }
else
{}
end
end
end