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

Support rails 8.0.0 #260

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Conversation

alpaca-tc
Copy link
Contributor

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 🙏

@@ -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))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alpaca-tc
Copy link
Contributor Author

@gurkanindibay Rails 8.0 was released yesterday! 🎉 Check it out: https://rubyonrails.org/2024/11/7/rails-8-no-paas-required
Please take a look at this PR when you get a chance 😄👍

@alpaca-tc alpaca-tc changed the title Support rails 8.0.0.beta1 Support rails 8.0.0 Nov 8, 2024
@gurkanindibay
Copy link
Contributor

@gurkanindibay Rails 8.0 was released yesterday! 🎉 Check it out: https://rubyonrails.org/2024/11/7/rails-8-no-paas-required Please take a look at this PR when you get a chance 😄👍

Thank you @alpaca-tc

@gurkanindibay
Copy link
Contributor

@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) ...
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
@alpaca-tc
Copy link
Contributor Author

@alpaca-tc can you check the 'static-checks' task output? It's failing

@gurkanindibay Fixed 💛 The latest version of rubocop seems to detect it.
e35bcb7

@gurkanindibay gurkanindibay self-requested a review November 11, 2024 09:55
@gurkanindibay gurkanindibay merged commit 3b21347 into citusdata:master Nov 11, 2024
146 checks passed
@gurkanindibay
Copy link
Contributor

Thanks @alpaca-tc for your contribution

@alpaca-tc alpaca-tc deleted the support-8-0-0 branch November 12, 2024 13:36
dtgay added a commit to aerodome-usa/activerecord-multi-tenant that referenced this pull request Nov 26, 2024
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