apotonick/cells — Issue #109: Caching doesn't escape loaded values from cache store
Author: Imomoi
Created: 2012-02-27 11:27:51+00:00
State: open

In Rails 3.2.1 cells doesn't escape cached values after reading them from database.

Our workaround for this issue is `config/initializers/cells_fix.rb`:

Cell::Base.class_eval do
def render_state(state, *args)
rendered_state = super(state, *args)
return rendered_state.html_safe if rendered_state.respond_to?(:html_safe)
rendered_state
end
end