activerecord-hackery / meta_search

Object-based searching (and more) for simply creating search forms. Not currently maintained.
http://erniemiller.org/2013/11/17/anyone-interested-in-activerecord-hackery/
MIT License
902 stars 140 forks source link

Attribute names cannot have aliases in them #119

Open chrismcleod opened 11 years ago

chrismcleod commented 11 years ago

For example if a model has an attribute phone, the preferred_method_name changes this to phodoes_not_equal (substitutes the ne in phone for does_not_equal since ne is an alias for does_not_equal). Then in matches_attribute_method, you will get undefined method `captures' for nil:NilClass since method_name does not match anything as phodoes isnt the attribute.

maurimtl commented 11 years ago

I'm getting this same bug but even when I remove the attribute phone (using it with activeadmin) the error remains..

[update]

fixed here: https://github.com/gregbell/active_admin/issues/2504