Skip to content

Instantly share code, notes, and snippets.

@macks
Created October 20, 2009 04:07
Show Gist options
  • Save macks/213978 to your computer and use it in GitHub Desktop.
Save macks/213978 to your computer and use it in GitHub Desktop.
Monkey patch for Rubytter
# -*- 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