Skip to content

Instantly share code, notes, and snippets.

@pius
Created February 5, 2010 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pius/296015 to your computer and use it in GitHub Desktop.
Save pius/296015 to your computer and use it in GitHub Desktop.
# slbug's temporary fix for Haml issue GH-83
# gisted for convenience
class String
attr_accessor :rails_html_safe alias html_safe? rails_html_safe
def html_safe!
@_rails_html_safe = true
self
end
def html_safe
dup.html_safe!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment