Skip to content

Fix select_for_count for Rails 8.0 with mixed select values - #1

Closed
armellarcier wants to merge 1 commit into
masterfrom
bugfix/rails8-string-select
Closed

armellarcier wants to merge 1 commit into
masterfrom
bugfix/rails8-string-select

Conversation

@armellarcier

Copy link
Copy Markdown
Collaborator

Add respond_to?(:right) checks before calling .right on select_values to handle both plain strings and Arel nodes. Fixes NoMethodError when calling .count on queries with non-Arel select values in Rails 8.0+.

Ref: shioyama#678
Based on: shioyama#679

Add respond_to?(:right) checks before calling .right on select_values
to handle both plain strings and Arel nodes. Fixes NoMethodError when
calling .count on queries with non-Arel select values in Rails 8.0+.

Ref: shioyama#678
Based on: shioyama#679
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