belated notice, but i think this line is equivalent to simplified:

```ruby
scope.order_values |= item.order_values
```

note |= rather than ||=