activerecord-hackery--ransack/lib
Jon Atack d19800b480 Speed this up a bit
&method looks more elegant (to me) but it's 3 times slower:

```
    require 'benchmark/ips'

    ARRAY = ["test", 2, 3, 4]

    Benchmark.ips do |x|
      x.report('fast') { ARRAY.map { |r| parse_record(r) } }
      x.report('slow') { ARRAY.map &method(:parse_record) }
      x.compare!
    end
```
Comparison:
                fast:  1046992.2 i/s
                slow:   332722.5 i/s - 3.15x slower
2015-08-29 13:02:41 +02:00
..
ransack Speed this up a bit 2015-08-29 13:02:41 +02:00
ransack.rb ActiveRecord excludes Mongoid 2015-05-22 18:46:28 +03:00