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

Test with Rails 7.2 #560

Merged
merged 7 commits into from
Oct 1, 2024
Merged

Test with Rails 7.2 #560

merged 7 commits into from
Oct 1, 2024

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Aug 20, 2024

Part of samvera/maintenance#161

Also drop testing on unsupported ruby/rails versions

The one substantial change in this PR is refactoring the visibility methods into a submodule that gets included to workaround a timing issue with changes in ActiveModel's define_attribute_methods.

@cjcolvar cjcolvar force-pushed the af_version branch 3 times, most recently from 262268b to 0193a00 Compare August 21, 2024 15:08
…tribute_methods

This works around a change in Rails 7.2 which adds a module that comes before Hydra::AccessControls::Visibility in ancestor heirarchy so gets called before the accessor methods defined in the Visibility module.
@cjcolvar cjcolvar marked this pull request as ready for review September 30, 2024 21:42
Copy link
Contributor

@randalldfloyd randalldfloyd left a comment

Choose a reason for hiding this comment

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

+1

@randalldfloyd randalldfloyd merged commit 6cdea54 into main Oct 1, 2024
9 checks passed
@randalldfloyd randalldfloyd deleted the af_version branch October 1, 2024 14:51
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.

2 participants