This project is archived and is in readonly mode.
@_rails_html_safe clutters up YAML
-
David James
On one hand, I understand that if I include ActiveSupport, then I am going to get all the monkey patching that comes with it. On another hand, adding instance variables to String seems a bit intrusive. Is there another way that ActiveSupport could do this? Or is there a better workaround from my perspective?
-
is
The same problem with write_fragment to memcached from action and read it from nginx/memcached: I" and :@_rails_html_safeF around html.
-
is
Sorry, my problem can be fixed by adding :raw => true to write_fragment.
-
Lenary
david, how does that monkey-patch work? i can't find any documentation for Utility.raw_string anywhere (moreover, i can't find any documentation for the module Utility)
-
David James
Lenary: you mean plain_string (not raw_string) from http://gist.github.com/250891 -- it is not a monkey patch; it is just a convenience method. Use it like this: Utility.plain_string(str)
-
Lenary
yeah, but is that called automatically from within YAML, or do you call it yourself?