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 @@

Public instance methods

find_parent_template - (template_path, format = nil) + (template_path, format = nil, html_fallback = true)

@@ -88,14 +88,14 @@

Public instance methods

[show source] -
# 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
find_template - (template_path, format = nil) + (template_path, format = nil, html_fallback = true)

@@ -106,14 +106,14 @@

Public instance methods

[show source] -
# 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
orig_find_template - (template_path, format = nil) + (template_path, format = nil, html_fallback = true)

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 @@

inherit_views.rb

Last Update: - Tue Feb 24 08:54:23 +0000 2009 + Tue Mar 03 09:37:47 +0000 2009