diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-11 01:08:40 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-11 01:17:43 -0500 |
commit | ab7ae689e9727781ef39b01a836a746ac75352fc (patch) | |
tree | cd7a5df13571a7c227a8bd9e0be1bfb9043cdabc /actionpack/lib | |
parent | 5d264f229c3798367e445d1ca02f3910ad9db547 (diff) | |
download | rails-ab7ae689e9727781ef39b01a836a746ac75352fc.tar.gz rails-ab7ae689e9727781ef39b01a836a746ac75352fc.tar.bz2 rails-ab7ae689e9727781ef39b01a836a746ac75352fc.zip |
Add .rb template handler
This handler simply allows arbitrary Ruby code as a template
Diffstat (limited to 'actionpack/lib')
-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 = {} |