diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-02-19 20:55:56 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-02-19 20:55:56 -0600 |
commit | f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690 (patch) | |
tree | 3dcac4ab4c1d170df4ecaa327513c81c742f1fda /actionpack/lib/action_view/base.rb | |
parent | 7c0e008973e594ebf53607362c1dfbe34b693600 (diff) | |
download | rails-f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690.tar.gz rails-f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690.tar.bz2 rails-f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690.zip |
Fix templates reloading in development when using custom view path [#2012 state:resolved]
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 4198725e0d..65b2062337 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -254,8 +254,8 @@ module ActionView #:nodoc: if options[:layout] _render_with_layout(options, local_assigns, &block) elsif options[:file] - tempalte = self.view_paths.find_template(options[:file], template_format) - tempalte.render_template(self, options[:locals]) + template = self.view_paths.find_template(options[:file], template_format) + template.render_template(self, options[:locals]) elsif options[:partial] render_partial(options) elsif options[:inline] |