Attribute names cannot have aliases in them
chrismcleod opened this issue · 1 comments
chrismcleod commented
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
I'm getting this same bug but even when I remove the attribute phone (using it with activeadmin) the error remains..
[update]
fixed here: activeadmin/activeadmin#2504