diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-07-05 23:54:11 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-05 23:54:11 -0500 |
commit | 9828aecd2aa98910f17e4b0f52519f4727d198d8 (patch) | |
tree | 1aa9d6ff3764a6fca9eae35756d041f643af667e /actionpack/lib/action_view/renderable.rb | |
parent | ce5d958f8fe878465c0d2142991a2945ca8d3cd1 (diff) | |
download | rails-9828aecd2aa98910f17e4b0f52519f4727d198d8.tar.gz rails-9828aecd2aa98910f17e4b0f52519f4727d198d8.tar.bz2 rails-9828aecd2aa98910f17e4b0f52519f4727d198d8.zip |
Lookup compiled methods in CompiledTemplates instance methods set instead of using a "methods_names" hash
Diffstat (limited to 'actionpack/lib/action_view/renderable.rb')
-rw-r--r-- | actionpack/lib/action_view/renderable.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/renderable.rb b/actionpack/lib/action_view/renderable.rb index d73dc3e2dc..2e2fff44c6 100644 --- a/actionpack/lib/action_view/renderable.rb +++ b/actionpack/lib/action_view/renderable.rb @@ -4,15 +4,15 @@ module ActionView attr_accessor :locals # TODO: These readers should be private - attr_reader :filename, :source, :handler, :method_key, :method + attr_reader :filename, :source, :handler def render prepare! @handler.render(self) end - def method_name - ['_run', @extension, method_name_path_segment].compact.join('_').to_sym + def method + ['_run', @extension, @method_segment].compact.join('_').to_sym end private @@ -23,7 +23,6 @@ module ActionView if @handler.compilable? @handler.compile_template(self) # compile the given template, if necessary - @method = @view.method_names[method_key] # Set the method name for this template and run it end @prepared = true |