lib/sakuramochi/relation.rb in sakuramochi-0.5.0 vs lib/sakuramochi/relation.rb in sakuramochi-0.5.1

- old
+ new

@@ -43,15 +43,11 @@ Arel::Nodes::Grouping.new(expression) end end def build_where_with_condition(opts, other = []) - if opts.is_a?(Array) && !opts.first.is_a?(String) - ast = Sakuramochi::Condition::Parser.new(opts.dup).parse - [collapse_conditions(ast, other)] - else - build_where_without_condition(opts, other) - end + ast = Sakuramochi::Condition::Parser.new(opts.dup).parse + [collapse_conditions(ast, other)] end end end end