Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Attribute names cannot have aliases in them #119

Open
chrismcleod opened this issue Oct 4, 2013 · 1 comment
Open

Attribute names cannot have aliases in them #119

chrismcleod opened this issue Oct 4, 2013 · 1 comment

Comments

@chrismcleod
Copy link

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
Copy link

maurimtl commented Oct 8, 2013

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants