diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-22 13:58:29 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-22 13:58:29 +0100 |
commit | 35e0975af8b6b50b16de4d0bf96559f46b1d1155 (patch) | |
tree | 15f1bc67af8c0d0b924044ec8874664277bc11bc /actionpack/lib | |
parent | d92e8554921b7ab1906fd657325f395413cbdb30 (diff) | |
download | rails-35e0975af8b6b50b16de4d0bf96559f46b1d1155.tar.gz rails-35e0975af8b6b50b16de4d0bf96559f46b1d1155.tar.bz2 rails-35e0975af8b6b50b16de4d0bf96559f46b1d1155.zip |
Rename erubis_implementation to erb_implementation.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/template/handlers/erb.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/template/handlers/erb.rb b/actionpack/lib/action_view/template/handlers/erb.rb index 4573a440d1..4b7cec50f3 100644 --- a/actionpack/lib/action_view/template/handlers/erb.rb +++ b/actionpack/lib/action_view/template/handlers/erb.rb @@ -43,13 +43,13 @@ module ActionView self.default_format = Mime::HTML - cattr_accessor :erubis_implementation - self.erubis_implementation = Erubis + cattr_accessor :erb_implementation + self.erb_implementation = Erubis def compile(template) source = template.source.gsub(/\A(<%(#.*coding[:=]\s*(\S+)\s*)-?%>)\s*\n?/, '') erb = "<% __in_erb_template=true %>#{source}" - result = self.class.erubis_implementation.new(erb, :trim=>(self.class.erb_trim_mode == "-")).src + result = self.class.erb_implementation.new(erb, :trim=>(self.class.erb_trim_mode == "-")).src result = "#{$2}\n#{result}" if $2 result end |