aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-12-03 13:58:47 -0600
committerJoshua Peek <josh@joshpeek.com>2008-12-03 13:58:47 -0600
commit7c0dfa35dbcfdb60f4cbd07b55f194a04e1b48c1 (patch)
tree5b2706e2c4f1b09c27e8ff5e89910cad0709acba /actionpack/lib/action_view
parent761a633a9c0a45d76ef3ed10da97e3696c3ded79 (diff)
downloadrails-7c0dfa35dbcfdb60f4cbd07b55f194a04e1b48c1.tar.gz
rails-7c0dfa35dbcfdb60f4cbd07b55f194a04e1b48c1.tar.bz2
rails-7c0dfa35dbcfdb60f4cbd07b55f194a04e1b48c1.zip
Register bogus template handlers for ActionMailer test fixtures
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/template.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb
index 52378e049e..e32b7688d0 100644
--- a/actionpack/lib/action_view/template.rb
+++ b/actionpack/lib/action_view/template.rb
@@ -9,9 +9,9 @@ module ActionView #:nodoc:
def initialize(template_path, load_paths = [])
template_path = template_path.dup
+ @load_path, @filename = find_full_path(template_path, load_paths)
@base_path, @name, @format, @extension = split(template_path)
@base_path.to_s.gsub!(/\/$/, '') # Push to split method
- @load_path, @filename = find_full_path(template_path, load_paths)
# Extend with partial super powers
extend RenderablePartial if @name =~ /^_/