diff options
author | wycats <wycats@gmail.com> | 2010-03-09 23:41:39 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-03-09 23:44:12 -0800 |
commit | 7b622786fcc5046a06989ec7a3cbf46f92e04dea (patch) | |
tree | 9a252d22deab3b5571f5dec50829f8c3e42b7ce6 /actionpack/lib/action_view/template/handlers/erb.rb | |
parent | 4464b8e87bedd69816d4658c9386cc360affb62e (diff) | |
download | rails-7b622786fcc5046a06989ec7a3cbf46f92e04dea.tar.gz rails-7b622786fcc5046a06989ec7a3cbf46f92e04dea.tar.bz2 rails-7b622786fcc5046a06989ec7a3cbf46f92e04dea.zip |
Make form helpers work with <%=
Diffstat (limited to 'actionpack/lib/action_view/template/handlers/erb.rb')
-rw-r--r-- | actionpack/lib/action_view/template/handlers/erb.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/handlers/erb.rb b/actionpack/lib/action_view/template/handlers/erb.rb index 3fcae167ff..937694ce8e 100644 --- a/actionpack/lib/action_view/template/handlers/erb.rb +++ b/actionpack/lib/action_view/template/handlers/erb.rb @@ -28,10 +28,18 @@ module ActionView @buffer.to_s end + def to_str + @buffer.to_str + end + def empty? @buffer.empty? end + def html_safe? + @buffer.html_safe? + end + if "".respond_to?(:force_encoding) def force_encoding(encoding) @buffer.force_encoding(encoding) |