Skip to content

fix caches_action with layout false - #42

Open
nazarok wants to merge 1 commit into
rails:masterfrom
nazarok:fix_caches_action_with_layout_false
Open

fix caches_action with layout false#42
nazarok wants to merge 1 commit into
rails:masterfrom
nazarok:fix_caches_action_with_layout_false

Conversation

@nazarok

@nazarok nazarok commented Jan 25, 2017

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

+1 merge it!

@pavelloz

pavelloz commented Nov 20, 2018

Copy link
Copy Markdown

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

@ErvalhouS

ErvalhouS commented Dec 24, 2018

Copy link
Copy Markdown

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