Skip to content

Support Rails render_in options signature#2636

Open
joelhawksley wants to merge 12 commits into
mainfrom
render_in_api
Open

Support Rails render_in options signature#2636
joelhawksley wants to merge 12 commits into
mainfrom
render_in_api

Conversation

@joelhawksley
Copy link
Copy Markdown
Member

@joelhawksley joelhawksley commented May 15, 2026

Rails merged rails/rails#50623, which changes the render_in signature from render_in(view_context, &block) to render_in(view_context, **options, &block).

The changes here maintain backward compatibility since **options is an optional parameter.

joelhawksley and others added 12 commits May 15, 2026 11:07
Rails merged rails/rails#50623, which changes the `render_in` signature from `render_in(view_context, &block)` to `render_in(view_context, **options, &block)`. This enables objects implementing `render_in` to receive render-time options like locals.

All tests pass. The changes maintain backward compatibility since `**options` is an optional parameter.
- Update Ruby 4.0 allocation expectations to use ranges to account for
  increased allocations from render_in(**options) changes in Rails main
- Update ActiveModel error test to accept either ViewComponent error
  or ActiveModel::UnknownAttributeError as Rails main now validates
  attributes earlier
…ibility

Appraisal converts hyphens to underscores in gemfile names,
so rails-main-head in Appraisals generates rails_main_head.gemfile
- Update Appraisals file: rails-main-head -> rails-main_head
- Update CI matrix: main-head -> main_head
- This ensures BUNDLE_GEMFILE path matches actual gemfile name
  (appraisal always converts to underscores in filenames)
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.

1 participant