Skip to content

Conversation

moberegger
Copy link

@moberegger moberegger commented Sep 29, 2025

Sync fork with upstream

excid3 and others added 30 commits November 9, 2024 10:24
…teral

Add `#frozen_string_literal: true` to all files
Optimize `_key` to prevent string allocation when formatting `Symbol`s
rafaelfranca and others added 26 commits July 18, 2025 18:04
Optimize internal `extract!` calls to save on memory allocation
Fix regression in API controllers with view_cache_dependencies helper
Co-authored-by: Rafael Mendonça França <[email protected]>
Optimize `method_missing` via `alias_method`
Cleanup project for Rails 7+ support
The controller scaffold generator tries to insert routes but there isn't
a routes file the tmp folder so it prints a warning instead. Prevent the
warning from being printed by using the option to skip routes.
In e18fe2a the Jbuilder::VERSION constant was introduced but in 9aa3dd9
it was used in the gemspec which changed the loading order so that the
version constant was loaded first. This defined Jbuilder as an Object
subclass rather than the intended BasicObject and when jbuilder/jbuilder
was required it redefined the Jbuilder constant and obliterates the
VERSION constant. This commit ensures that the version constant exists
and the Jbuilder parent class is BasicObject.
Fix warnings and prevent Jbuilder::VERSION constant from being obliterated
…erges

Optimize memory allocation when rendering partials
The initializer previously accepted an options hash, but now takes
kwargs. So the encode method also needs to accept (and forward)
kwargs.
…ents

Ensure that `Jbuilder.encode` properly forwards arguments to `.new`
@moberegger moberegger marked this pull request as ready for review September 29, 2025 18:55
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.

6 participants