diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-10 23:20:12 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-09-10 23:20:12 -0700 |
commit | db17046bc1648a7b9e346f1d106801d09c0a1ead (patch) | |
tree | 2be6b6a5523435ef43a87d79dd9a172ef613a8ea /actionpack/lib/action_view | |
parent | b2063f2a7aef211bed5d2014ec655b272739287f (diff) | |
parent | ab7ae689e9727781ef39b01a836a746ac75352fc (diff) | |
download | rails-db17046bc1648a7b9e346f1d106801d09c0a1ead.tar.gz rails-db17046bc1648a7b9e346f1d106801d09c0a1ead.tar.bz2 rails-db17046bc1648a7b9e346f1d106801d09c0a1ead.zip |
Merge pull request #7594 from guilleiguaran/rb-template-handler
Add .rb template handler
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/template/handlers.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/handlers.rb b/actionpack/lib/action_view/template/handlers.rb index 41b14373a3..52e032bbd8 100644 --- a/actionpack/lib/action_view/template/handlers.rb +++ b/actionpack/lib/action_view/template/handlers.rb @@ -10,6 +10,7 @@ module ActionView #:nodoc: base.register_default_template_handler :erb, ERB.new base.register_template_handler :builder, Builder.new base.register_template_handler :raw, Raw.new + base.register_template_handler :rb, :source.to_proc end @@template_handlers = {} |