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

Add support for Rails 8.0 #572

Open
wants to merge 1 commit into
base: core
Choose a base branch
from
Open

Conversation

chenillen
Copy link

  • add support to 8.0
  • add a test all file for 6.1 - 8.0 version

@chenillen chenillen marked this pull request as draft December 5, 2024 09:10
@chenillen chenillen marked this pull request as draft December 5, 2024 09:10
@chenillen chenillen marked this pull request as ready for review December 5, 2024 09:10
@@ -0,0 +1 @@
3.2.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure why we need this file, especially with .0 ...

@@ -1,7 +1,7 @@
require 'active_record' unless defined? ActiveRecord

if [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [5, 2] ||
ActiveRecord::VERSION::MAJOR > 5
ActiveRecord::VERSION::MAJOR >= 6
require 'paranoia/active_record_5_2'
Copy link
Collaborator

@mathieujobin mathieujobin Dec 10, 2024

Choose a reason for hiding this comment

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

looking at this change, this looks badly named... do we need this patch for rails 6, 7 and 8 ?

@@ -20,7 +21,7 @@ if RUBY_ENGINE == 'rbx'
end
end

rails = ENV['RAILS'] || '~> 6.0.4'
rails = ENV['RAILS'] || '~> 6.1.0'
Copy link
Collaborator

Choose a reason for hiding this comment

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

we could move up the rails initialization, before sqlite and use the var instead, but I can see how its equivalent. so maybe its OK as-is

Copy link
Collaborator

@mathieujobin mathieujobin left a comment

Choose a reason for hiding this comment

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

These looks like good changes... I only have minor comments... but the title is miss-leading. this isn't adding support for Rails 8. it's only fixing small things and adding a script. Support for 8 is already merged in #563

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