Skip to content

Better handle cacheable-flash transitioners#48

Open
jaredhales wants to merge 2 commits intoleonid-shevtsov:masterfrom
jaredhales:improve-cacheable-flash-transition
Open

Better handle cacheable-flash transitioners#48
jaredhales wants to merge 2 commits intoleonid-shevtsov:masterfrom
jaredhales:improve-cacheable-flash-transition

Conversation

@jaredhales
Copy link
Copy Markdown

The cacheable-flash gem is no longer maintained and the author suggests unobtrusive_flash as its successor: https://github.com/pboling/cacheable-flash

However, the flash cookie format is different between these two libraries. This patch will make the transition from one to the other more painless (and as an added side effect also to help to handle tampered cookies that may not be in the expected format). I manually did this locally for our project and figured others might benefit from it as well.

The `cacheable-flash` gem is no longer maintained and the author suggests `unobtrusive_flash` as its successor: https://github.com/pboling/cacheable-flash

However, the flash cookie format is different between these two libraries. This patch will make the transition from one to the other more painless (and as an added side effect also to help to handle tampered cookies that may not be in the expected format). I manually did this locally for our project and figured others might benefit from it as well.
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.

1 participant