Skip to content
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

resource is an association, not an attribute, add getter/setter aliases #37

Conversation

jrafanie
Copy link
Member

Fixes:

ManageIQ::Providers::Awx::AutomationManager::Credential model aliases `resource`, but `resource` is not an attribute. Starting in Rails 7.2, alias_attribute with non-attribute targets will raise. Use `alias_method :manager, :resource` or define the method manually

Fixes:

ManageIQ::Providers::Awx::AutomationManager::Credential model aliases `resource`, but `resource` is not an attribute. Starting in Rails 7.2, alias_attribute with non-attribute targets will raise. Use `alias_method :manager, :resource` or define the method manually
@jrafanie
Copy link
Member Author

@kbrock please also review... I think this is the solution we decided is best for alias_attribute on associations.

@kbrock kbrock added the enhancement New feature or request label Nov 19, 2024
@kbrock kbrock merged commit 2bc2cdb into ManageIQ:master Nov 19, 2024
4 checks passed
@jrafanie jrafanie deleted the fix-alias-attribute-with-non-attribute-deprecation branch November 19, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rails7.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants