diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-11 17:42:27 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-11 17:42:27 -0800 |
commit | 698312de872b5410fa523f5164ef10518d8c92e9 (patch) | |
tree | 88b3919200d411855377e51e4b5329becc8627aa | |
parent | b27376773e8f51b03bd4cb2678764cd392455870 (diff) | |
download | rails-698312de872b5410fa523f5164ef10518d8c92e9.tar.gz rails-698312de872b5410fa523f5164ef10518d8c92e9.tar.bz2 rails-698312de872b5410fa523f5164ef10518d8c92e9.zip |
Delegate #encoding to SafeBuffer too
-rw-r--r-- | actionpack/lib/action_view/template/handlers/erb.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/handlers/erb.rb b/actionpack/lib/action_view/template/handlers/erb.rb index 937694ce8e..2ac68d38bd 100644 --- a/actionpack/lib/action_view/template/handlers/erb.rb +++ b/actionpack/lib/action_view/template/handlers/erb.rb @@ -41,6 +41,10 @@ module ActionView end if "".respond_to?(:force_encoding) + def encoding + @buffer.encoding + end + def force_encoding(encoding) @buffer.force_encoding(encoding) end |