Skip to content

Forward-compat with Rails 8.2#493

Merged
jorgemanrubia merged 1 commit intomainfrom
dom_id
Dec 9, 2025
Merged

Forward-compat with Rails 8.2#493
jorgemanrubia merged 1 commit intomainfrom
dom_id

Conversation

@jeremy
Copy link
Member

@jeremy jeremy commented Dec 9, 2025

Rails 8.2 removed the dom_id method from the ActionText tag in rails/rails#51238, breaking Lexxy's override.

Use @template_object.dom_id instead which works in all releases. (@template_object is the view context and always has access to RecordIdentifier helpers, including dom_id.)

This is obviated by #484 but allows Rails 8.2 apps to not break before adopting the adapter setup.

Rails 8.2 removed the `dom_id` method from the ActionText tag in
rails/rails#51238, breaking Lexxy's override.

Use `@template_object.dom_id` instead which works in all releases.
(`@template_object` is the view context and always has access to
`RecordIdentifier` helpers, including `dom_id`.)

This is obviated by #484 but allows Rails 8.2 apps to not break before
adopting the adapter setup.
@jeremy jeremy requested a review from jorgemanrubia December 9, 2025 05:10
jeremy added a commit to basecamp/fizzy that referenced this pull request Dec 9, 2025
Rails does post-upload variant processing using the same file upload
in rails/rails#56327

Unrelated fix due to Rails bump:
Pulls in basecamp/lexxy#493 to work around `dom_id`
removal from ActionText tag in rails/rails#51238
jeremy added a commit to basecamp/fizzy that referenced this pull request Dec 9, 2025
Rails does post-upload variant processing using the same file upload
in rails/rails#56327

Unrelated fix due to Rails bump:
Pulls in basecamp/lexxy#493 to work around `dom_id`
removal from ActionText tag in rails/rails#51238
Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

Thanks @jeremy 🙏🙏

@jorgemanrubia jorgemanrubia merged commit d292280 into main Dec 9, 2025
5 checks passed
jeremy added a commit to basecamp/fizzy that referenced this pull request Dec 9, 2025
Rails does post-upload variant processing using the same file upload
in rails/rails#56327

Unrelated fix due to Rails bump:
Pulls in basecamp/lexxy#493 to work around `dom_id`
removal from ActionText tag in rails/rails#51238
@jeremy jeremy deleted the dom_id branch December 9, 2025 07:36
jeremy added a commit to basecamp/fizzy that referenced this pull request Dec 9, 2025
Rails does post-upload variant processing using the same file upload
in rails/rails#56327

Unrelated Lexxy bump:
Pulls in basecamp/lexxy#493 to work around `dom_id`
removal from ActionText tag in rails/rails#51238
lonexw pushed a commit to lonexw/kanban that referenced this pull request Dec 9, 2025
Rails does post-upload variant processing using the same file upload
in rails/rails#56327

Unrelated Lexxy bump:
Pulls in basecamp/lexxy#493 to work around `dom_id`
removal from ActionText tag in rails/rails#51238
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