ernie/ransack — Issue #32: Cannot visit Range
Author: polimorfico
Created: 2011-10-17 19:09:20+00:00
State: open

Hi,

I'm trying to use a custom predicate, but I get always the same error.

Ransack.configure do |config|
config.add_predicate 'btw',
:arel_predicate => 'in',
:formatter => proc {|v| Range.new(Date.today, Date.today+1)}
end

Thanks,
Carlos