-
Notifications
You must be signed in to change notification settings - Fork 99
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
Support rails 8.0.0 #260
Support rails 8.0.0 #260
Conversation
@@ -21,7 +21,7 @@ def update_all(updates) | |||
|
|||
stmt = Arel::UpdateManager.new | |||
stmt.table(table) | |||
stmt.set Arel.sql(@klass.send(:sanitize_sql_for_assignment, updates)) | |||
stmt.set Arel.sql(klass.send(:sanitize_sql_for_assignment, updates)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
related: rails/rails#51932
9a78cf8
to
d4a1eef
Compare
@gurkanindibay Rails 8.0 was released yesterday! 🎉 Check it out: https://rubyonrails.org/2024/11/7/rails-8-no-paas-required |
d4a1eef
to
abdff2f
Compare
Thank you @alpaca-tc |
@alpaca-tc can you check the 'static-checks' task output? It's failing |
``` lib/activerecord-multi-tenant/model_extensions.rb:69:37: C: [Corrected] Style/KeywordArgumentsMerging: Provide additional arguments directly rather than using merge. belongs_to tenant_name, **options.slice(:class_name, :inverse_of, :optional) ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ```
@gurkanindibay Fixed 💛 The latest version of rubocop seems to detect it. |
Thanks @alpaca-tc for your contribution |
I have not yet examined it in detail, but I have fixed what is obviously broken.
The
ActiveRecord::VERSION::MAJOR >= 7 && ActiveRecord::VERSION::MINOR >= 2
branch is clearly wrong and will not work as expected with 8.0, so please merge this PR 🙏