Created
April 5, 2011 21:56
-
-
Save dmitryame/904664 to your computer and use it in GitHub Desktop.
this will override the html_safe? implementation of string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Object | |
def html_safe? | |
true | |
end | |
end | |
class String | |
def html_safe? | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why would one want to do such a horrible thing? :(