Skip to content

Instantly share code, notes, and snippets.

@donpdonp
Created August 5, 2011 21:47
Show Gist options
  • Save donpdonp/1128599 to your computer and use it in GitHub Desktop.
Save donpdonp/1128599 to your computer and use it in GitHub Desktop.
Rubinius and Rails SafeBuffer
Cannot modify SafeBuffer in place
activesupport (3.0.9) lib/active_support/core_ext/string/output_safety.rb:119:in `rstrip!'
kernel/common/string.rb:1495:in `rstrip'
activesupport (3.0.9) lib/active_support/core_ext/string/output_safety.rb:115:in `rstrip'
string.rb
def rstrip
str = dup
1495: str.rstrip! || str
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment