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

Rails 7 - Potential Select Attribute Behavior Change #61

Open
egreer opened this issue Jul 20, 2022 · 0 comments
Open

Rails 7 - Potential Select Attribute Behavior Change #61

egreer opened this issue Jul 20, 2022 · 0 comments

Comments

@egreer
Copy link
Contributor

egreer commented Jul 20, 2022

There is a bug/unlisted deprecation in Rails 7 regarding .select and how it creates attribute reflections for fields. To fix Add a has_attribute? check to anything acting on after_initialize will need to have these for us to be able to use .select.

Example:
if has_attribute?(:foo) && foo.blank?

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

No branches or pull requests

1 participant