aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/render
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-08 15:19:03 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-08 15:19:03 +0100
commit44ebab96da0ab47cc45c64a6efdd2cbb80f9d042 (patch)
treeedb94d25dbc903c5148ef6bd1cf58df7149f0748 /actionpack/lib/action_view/render
parentea68fe59c670dd5580f3aa34fdfa0eb89eb717d3 (diff)
downloadrails-44ebab96da0ab47cc45c64a6efdd2cbb80f9d042.tar.gz
rails-44ebab96da0ab47cc45c64a6efdd2cbb80f9d042.tar.bz2
rails-44ebab96da0ab47cc45c64a6efdd2cbb80f9d042.zip
Rename Template::Lookup to LookupContext.
Diffstat (limited to 'actionpack/lib/action_view/render')
-rw-r--r--actionpack/lib/action_view/render/layouts.rb4
-rw-r--r--actionpack/lib/action_view/render/partials.rb2
-rw-r--r--actionpack/lib/action_view/render/rendering.rb4
3 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/render/layouts.rb b/actionpack/lib/action_view/render/layouts.rb
index e1dbd3c120..b9c63e0090 100644
--- a/actionpack/lib/action_view/render/layouts.rb
+++ b/actionpack/lib/action_view/render/layouts.rb
@@ -48,10 +48,10 @@ module ActionView
# the given name exists across all details before raising the error.
def _find_layout(layout) #:nodoc:
begin
- find(layout)
+ find_template(layout)
rescue ActionView::MissingTemplate => e
update_details(:formats => nil) do
- raise unless template_lookup.exists?(layout)
+ raise unless template_exists?(layout)
end
end
end
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb
index 950c9d2cd8..0fe2d560f7 100644
--- a/actionpack/lib/action_view/render/partials.rb
+++ b/actionpack/lib/action_view/render/partials.rb
@@ -294,7 +294,7 @@ module ActionView
def find_template(path=@path)
return path unless path.is_a?(String)
prefix = @view.controller_path unless path.include?(?/)
- @view.find(path, prefix, true)
+ @view.find_template(path, prefix, true)
end
def partial_path(object = @object)
diff --git a/actionpack/lib/action_view/render/rendering.rb b/actionpack/lib/action_view/render/rendering.rb
index 61fea6f49e..96c0b4fe6a 100644
--- a/actionpack/lib/action_view/render/rendering.rb
+++ b/actionpack/lib/action_view/render/rendering.rb
@@ -63,9 +63,9 @@ module ActionView
elsif options.key?(:text)
Template::Text.new(options[:text], self.formats.try(:first))
elsif options.key?(:file)
- find(options[:file], options[:_prefix])
+ find_template(options[:file], options[:_prefix])
elsif options.key?(:template)
- find(options[:template], options[:_prefix])
+ find_template(options[:template], options[:_prefix])
end
end