Skip to content

Instantly share code, notes, and snippets.

@ready4god2513
Created October 23, 2012 20:55
Show Gist options
  • Select an option

  • Save ready4god2513/3941488 to your computer and use it in GitHub Desktop.

Select an option

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.
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