Closed pote closed 7 years ago
This allows for a slightly nicer API:
Player.all.rank(by: :score, start: 0, stop: 10)
It does, however, mean Ohm would no longer work in versions of Ruby that don't support the required keyword argument syntax (meaning, below 2.1), but this should be okay considering support for Ruby 2.0 has officially ended last year.
This allows for a slightly nicer API:
It does, however, mean Ohm would no longer work in versions of Ruby that don't support the required keyword argument syntax (meaning, below 2.1), but this should be okay considering support for Ruby 2.0 has officially ended last year.