diff --git a/doc/classes/InheritViews/PathSet.html b/doc/classes/InheritViews/PathSet.html index c7b52ca..510f5be 100644 --- a/doc/classes/InheritViews/PathSet.html +++ b/doc/classes/InheritViews/PathSet.html @@ -76,7 +76,7 @@
@@ -88,14 +88,14 @@
# File lib/inherit_views.rb, line 108 def find_parent_template(template_path, format = nil) # first, we grab the inherit view paths that are 'above' the given template_path if inherit_view_paths.present? && (starting_path = inherit_view_paths.detect {|path| template_path.starts_with?("#{path}/")}) parent_paths = inherit_view_paths.slice(inherit_view_paths.index(starting_path)+1..-1) # then, search through each path, substituting the inherit view path, returning the first found parent_paths.each do |path| begin return orig_find_template(template_path.sub(/^#{starting_path}/, path), format) rescue ::ActionView::MissingTemplate next end end end raise ::ActionView::MissingTemplate.new(self, template_path, format) end+
# File lib/inherit_views.rb, line 108 def find_parent_template(template_path, format = nil, html_fallback = true) # first, we grab the inherit view paths that are 'above' the given template_path if inherit_view_paths.present? && (starting_path = inherit_view_paths.detect {|path| template_path.starts_with?("#{path}/")}) parent_paths = inherit_view_paths.slice(inherit_view_paths.index(starting_path)+1..-1) # then, search through each path, substituting the inherit view path, returning the first found parent_paths.each do |path| begin return orig_find_template(template_path.sub(/^#{starting_path}/, path), format, html_fallback) rescue ::ActionView::MissingTemplate next end end end raise ::ActionView::MissingTemplate.new(self, template_path, format) end
@@ -106,14 +106,14 @@
# File lib/inherit_views.rb, line 101 def find_template(template_path, format = nil) super rescue ::ActionView::MissingTemplate find_parent_template(template_path, format) end+
# File lib/inherit_views.rb, line 101 def find_template(template_path, format = nil, html_fallback = true) super rescue ::ActionView::MissingTemplate find_parent_template(template_path, format) end
diff --git a/doc/created.rid b/doc/created.rid index a9ad326..51518be 100644 --- a/doc/created.rid +++ b/doc/created.rid @@ -1 +1 @@ -Fri, 27 Feb 2009 10:55:52 +0000 +Tue, 03 Mar 2009 09:39:28 +0000 diff --git a/doc/files/lib/inherit_views_rb.html b/doc/files/lib/inherit_views_rb.html index 79f77de..bcce30e 100644 --- a/doc/files/lib/inherit_views_rb.html +++ b/doc/files/lib/inherit_views_rb.html @@ -31,7 +31,7 @@