Browse files

Fix for Rails 3.1 Beta.

  • Loading branch information...
1 parent 03e1999 commit 34f92c1b39f5b9470af060d4e05396b847f60991 @martinstreicher martinstreicher committed with Mar 12, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/inherited_resources_views/action_view.rb
View
8 lib/inherited_resources_views/action_view.rb
@@ -7,14 +7,14 @@ def self.process_view_paths(value)
end
end
end
-
+
class PathSet < ::ActionView::PathSet
- def find(path, prefix = nil, partial = false, details = {}, key = nil)
+ def find(path, prefix = nil, partial = false, details = {}, key = nil, keys = [])
super
rescue ::ActionView::MissingTemplate
- super(path, "inherited_resources", partial, details, key)
+ super(path, "inherited_resources", partial, details, key, keys)
end
-
+
def find_template(original_template_path, format = nil, html_fallback = true)
super
rescue ::ActionView::MissingTemplate

0 comments on commit 34f92c1

Please sign in to comment.