aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/template/handlers.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 18:00:27 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 11:58:42 -0300
commit4be859f0fdf7b3059a28d03c279f03f5938efc80 (patch)
tree8ceb5895aad7b923b05da2067d37f1fffd14bb00 /actionview/lib/action_view/template/handlers.rb
parent34bcbcf35701ca44be559ff391535c0dd865c333 (diff)
downloadrails-4be859f0fdf7b3059a28d03c279f03f5938efc80.tar.gz
rails-4be859f0fdf7b3059a28d03c279f03f5938efc80.tar.bz2
rails-4be859f0fdf7b3059a28d03c279f03f5938efc80.zip
Change the default template handler from `ERB` to `Raw`.
Files without a template handler in their extension will be rended using the raw handler instead of ERB.
Diffstat (limited to 'actionview/lib/action_view/template/handlers.rb')
-rw-r--r--actionview/lib/action_view/template/handlers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/template/handlers.rb b/actionview/lib/action_view/template/handlers.rb
index 9e61ea4225..0105e88a49 100644
--- a/actionview/lib/action_view/template/handlers.rb
+++ b/actionview/lib/action_view/template/handlers.rb
@@ -7,9 +7,9 @@ module ActionView #:nodoc:
autoload :Raw, 'action_view/template/handlers/raw'
def self.extended(base)
- base.register_default_template_handler :erb, ERB.new
+ base.register_default_template_handler :raw, Raw.new
+ base.register_template_handler :erb, ERB.new
base.register_template_handler :builder, Builder.new
- base.register_template_handler :raw, Raw.new
base.register_template_handler :ruby, :source.to_proc
end