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

Fix NoMethodError exception for Rails 8 #56

Merged
merged 2 commits into from
Dec 30, 2024
Merged

Conversation

morissetcl
Copy link
Owner

@morissetcl morissetcl commented Dec 30, 2024

We have different error messages depending of the Rails version.

Rails::Version <= 8
undefined method employee for an instance of User (NoMethodError)
Rails::Version < 8
undefined method employee for #<User id: 37..>

This PR ensure that we return the correct output for all cases.

@morissetcl morissetcl self-assigned this Dec 30, 2024
@morissetcl morissetcl merged commit 3d09600 into master Dec 30, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant