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 against rails 8.0 #1498

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Conversation

fatkodima
Copy link
Contributor

@fatkodima fatkodima commented Oct 19, 2024

Closes #1490.

  • Wrote good commit messages.
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Added an entry to the Changelog if the new
    code introduces user-observable changes.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.

@@ -5,5 +5,9 @@
class PostWithStatus < ApplicationRecord
has_paper_trail

enum status: { draft: 0, published: 1, archived: 2 }
if ActiveRecord::VERSION::MAJOR >= 8

Choose a reason for hiding this comment

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

Suggested change
if ActiveRecord::VERSION::MAJOR >= 8
if ActiveRecord::VERSION::MAJOR >= 7

I think the new syntax was added in 7.0 so this would enable removing the condition sooner (when 6.1 is dropped)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea! 👍

@modosc
Copy link
Contributor

modosc commented Oct 23, 2024

@fatkodima @skipkayhil should we go ahead and merge this?

@fatkodima fatkodima merged commit 491569c into paper-trail-gem:master Oct 23, 2024
10 checks passed
@fatkodima fatkodima deleted the rails-8.0 branch October 23, 2024 23:13
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.

Add support for rails 8.0.0.alpha
3 participants