Permalink
Browse files

Delegate #encoding to SafeBuffer too

  • Loading branch information...
jeremy committed Mar 12, 2010
1 parent b273767 commit 698312de872b5410fa523f5164ef10518d8c92e9
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_view/template/handlers/erb.rb
@@ -41,6 +41,10 @@ def html_safe?
end
if "".respond_to?(:force_encoding)
+ def encoding
+ @buffer.encoding
+ end
+
def force_encoding(encoding)
@buffer.force_encoding(encoding)
end

0 comments on commit 698312d

Please sign in to comment.