Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve compatibility with upcoming Rails 7.1 #135

Merged
merged 1 commit into from Aug 7, 2022

Conversation

casperisfine
Copy link

@casperisfine casperisfine commented Aug 2, 2022

In rails/rails#45614 I modified ActionView::OutputBuffer to no longer be a subclass of ActiveSupport::SafeBuffer and as such it's not recommended to use SafeBuffer for buffering views anymore.

Additionally in rails/rails#45731 I start doing some changes so that we stop mutating @output_buffer. So template should no longer assign @output_buffer themselves.

In rails/rails#45614 I modified
`ActionView::OutputBuffer` to no longer be a subclass of
`ActiveSupport::SafeBuffer` and as such it's not recommended
to use `SafeBuffer` for buffering views anymore.

Additionally in rails/rails#45731
I start doing some changes so that we stop mutating `@output_buffer`.
So template should no longer assign `@output_buffer` themselves.
@judofyr
Copy link
Owner

judofyr commented Aug 3, 2022

How does this work with older Rails versions? Is it still compatible?

@casperisfine
Copy link
Author

I believe so yes.

ActionView::Buffer was introduced 12 years ago: https://github.com/rails/rails/blame/ab105e6072d291d7024e4e645defa5eff31f6f21/actionpack/lib/action_view/buffers.rb

@output_buffer is still assigned just in case, even though I don't think it's necessary.

@judofyr
Copy link
Owner

judofyr commented Aug 7, 2022

Sounds good to me then!

@judofyr judofyr merged commit de64682 into judofyr:master Aug 7, 2022
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.

None yet

3 participants