diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-03 13:06:00 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-03 13:06:00 -0500 |
commit | 8a442e0d57fabedcaf3ded836cfc12f7067ead68 (patch) | |
tree | 3ab64f7ec0bda906882531af8a76a54ef83ae282 /actionpack/lib/action_view/inline_template.rb | |
parent | 7d5c8505f528f195433693d5074a00f7635955b2 (diff) | |
download | rails-8a442e0d57fabedcaf3ded836cfc12f7067ead68.tar.gz rails-8a442e0d57fabedcaf3ded836cfc12f7067ead68.tar.bz2 rails-8a442e0d57fabedcaf3ded836cfc12f7067ead68.zip |
Extracted Template rendering logic into Renderer module
Diffstat (limited to 'actionpack/lib/action_view/inline_template.rb')
-rw-r--r-- | actionpack/lib/action_view/inline_template.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/inline_template.rb b/actionpack/lib/action_view/inline_template.rb index 3a97f47e32..19ab92ce1a 100644 --- a/actionpack/lib/action_view/inline_template.rb +++ b/actionpack/lib/action_view/inline_template.rb @@ -1,5 +1,7 @@ module ActionView #:nodoc: - class InlineTemplate < Template #:nodoc: + class InlineTemplate #:nodoc: + include Renderer + def initialize(view, source, locals = {}, type = nil) @view = view @@ -7,11 +9,8 @@ module ActionView #:nodoc: @extension = type @locals = locals || {} + @method_key = @source @handler = Base.handler_class_for_extension(@extension).new(@view) end - - def method_key - @source - end end end |