berk / will_filter

rails engine plugin for filtering active_record model objects
MIT License
157 stars 76 forks source link

is_in operator failed ? #49

Closed seyna closed 10 years ago

seyna commented 11 years ago

Hi, berk, first thank you for bringing up such a good tool/framework to filter active records. I really enjoy your UI and clean codes.

After using for a while, I found out that "is_in" operator seems to not working, do you know what's going on here?

As pictures shows below: http://d.pr/i/l8tF http://d.pr/i/AOFy

seyna commented 10 years ago

I found this error caused by 'strip', to fix it, just remove it

bnudle open willfilter

# app/models/will_filter/filter.rb|597
# cond << (c.collect{|v| "\"#{v.strip}\""}.join(", "))   # original, don't use this
cond << (c.collect{|v| "\"#{v}\""}.join(", "))  # use this