-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple enum_attr's and annotate gem #56
Comments
More in-depth stack trace:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a model that looks like
When attempting to run annotate on that model,
Then I get the following error
I seem to have narrowed it down to the fact that
enum_attr
is being used twice in the model. Removing (or commenting out) one or both allows the model to be annotated as expected, even when both enums are defined in the migration. My guess is that method_missing_without_enumerated_attribute is being defined each time enum_attr is used, but I don't know enough about the internals of enumerated_attribute to determine this.The text was updated successfully, but these errors were encountered: