Created
October 23, 2012 20:55
-
-
Save ready4god2513/3941488 to your computer and use it in GitHub Desktop.
Stupid deprecation issues that I can't fix. So I will fix them.
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 puts(str) | |
| super unless str.include?("DEPRECATION WARNING: Passing a template handler") | |
| end | |
| def print(str) | |
| super unless str.include?("DEPRECATION WARNING: Passing a template handler") | |
| end | |
| end | |
| puts "testing" | |
| puts "DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply" | |
| print "testing" | |
| print "DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment