Navigation Menu

Skip to content

Commit

Permalink
Delegate #encoding to SafeBuffer too
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Mar 12, 2010
1 parent b273767 commit 698312d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actionpack/lib/action_view/template/handlers/erb.rb
Expand Up @@ -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
Expand Down

0 comments on commit 698312d

Please sign in to comment.