diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-20 11:06:37 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-20 11:06:37 +0100 |
commit | 19292a70fb553895693f496ef2bd09ade4ab7890 (patch) | |
tree | f24d9538eedcdccea7e87b2d5e2bdca3939a4668 /actionpack/lib/action_view/template | |
parent | fde9af06785cb871ad040a34b04380b28d9657c7 (diff) | |
download | rails-19292a70fb553895693f496ef2bd09ade4ab7890.tar.gz rails-19292a70fb553895693f496ef2bd09ade4ab7890.tar.bz2 rails-19292a70fb553895693f496ef2bd09ade4ab7890.zip |
Do not hard code encoding to UTF8
Diffstat (limited to 'actionpack/lib/action_view/template')
-rw-r--r-- | actionpack/lib/action_view/template/error.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb index ee74bb47d3..587e37a84f 100644 --- a/actionpack/lib/action_view/template/error.rb +++ b/actionpack/lib/action_view/template/error.rb @@ -89,14 +89,10 @@ module ActionView line_counter = start_on_line return unless source_code = source_code[start_on_line..end_on_line] - extract = source_code.sum do |line| + source_code.sum do |line| line_counter += 1 "#{indent}#{line_counter}: #{line}\n" end - - extract.force_encoding("UTF-8") if extract.respond_to?(:encode!) - - extract end def sub_template_of(template_path) |