Skip to content

Conversation

@moberegger
Copy link

Just syncing the upstream changes.

moberegger and others added 23 commits May 8, 2025 15:29
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 23, 2025 16:45
@moberegger
Copy link
Author

Closing because I got permission back to sync our fork.

image

@moberegger moberegger closed this Sep 23, 2025
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.

5 participants