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

fix caches_action with layout false #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nazarok
Copy link

@nazarok nazarok commented Jan 25, 2017

If I set caches_action :home, layout: false and the cache is not created, my action return a string that is not safe!
I added html_safe method, which is also used in http://apidock.com/rails/ActionController/Caching/Fragments/read_fragment

@poolpeggy
Copy link

Thanks for the fix, I've encountered the same issue.

antulik added a commit to antulik/actionpack-action_caching that referenced this pull request May 27, 2017
@PanfilovDenis
Copy link

+1 merge it!

@pavelloz
Copy link

pavelloz commented Nov 20, 2018

^ Agree, its much needed fix (forces us to fork the gem)

@ErvalhouS
Copy link

ErvalhouS commented Dec 24, 2018

This is a very serious bug that got fixed by #43 but the team hasn't uploaded the fix into RubyGems. If anyone is still having this issue just use github as the source for the gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants