Created
October 20, 2009 04:07
-
-
Save macks/213978 to your computer and use it in GitHub Desktop.
Monkey patch for Rubytter
This file contains 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
# -*- coding: utf-8 -*- | |
class Rubytter | |
alias update__without_strict140 update | |
def update(status, params = {}) | |
if (characters = status.split(//u)).size > 140 | |
status = characters[0, 140].join | |
end | |
update__without_strict140(status, params) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment