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 issues for Rails 7.2 #191

Merged
merged 5 commits into from
Aug 14, 2024
Merged

Fix issues for Rails 7.2 #191

merged 5 commits into from
Aug 14, 2024

Conversation

FLeinzi
Copy link
Contributor

@FLeinzi FLeinzi commented Aug 12, 2024

No description provided.

@kratob kratob force-pushed the rails_7_2 branch 2 times, most recently from 261d79b to 5580713 Compare August 13, 2024 14:43
@kratob
Copy link
Member

kratob commented Aug 13, 2024

I seem to have fixed it, but the whole approach of the NoTable module is becoming unsustainable. :-(

@kratob
Copy link
Member

kratob commented Aug 13, 2024

@FLeinzi maybe you can take a look. I cannot request a review since you own the PR.

@FLeinzi FLeinzi self-assigned this Aug 13, 2024
Comment on lines 155 to 157
def cached_find_by(*)
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we explicitly return nil or [] (like in the methods above) here?

lib/active_type/no_table.rb Show resolved Hide resolved
@kratob kratob changed the title WIP: Add Rails 7.1 and 7.2 to the test matrix Fix issues for Rails 7.2 Aug 14, 2024
@kratob
Copy link
Member

kratob commented Aug 14, 2024

This should fix #190.

@kratob kratob marked this pull request as ready for review August 14, 2024 08:54
@kratob kratob merged commit ab4f576 into main Aug 14, 2024
18 checks passed
@kratob kratob deleted the rails_7_2 branch August 14, 2024 08:54
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.

Rails 7.2: Could not find table 'objects' (ActiveRecord::StatementInvalid)
2 participants