Class: InheritedResourcesViews::ActionView::PathSet
- Inherits:
-
ActionView::PathSet
- Object
- ActionView::PathSet
- InheritedResourcesViews::ActionView::PathSet
- Defined in:
- lib/inherited_resources_views/action_view.rb
Instance Method Summary collapse
- #find(path, prefix = nil, partial = false, details = {}, key = nil) ⇒ Object
- #find_template(original_template_path, format = nil, html_fallback = true) ⇒ Object
Instance Method Details
#find(path, prefix = nil, partial = false, details = {}, key = nil) ⇒ Object
12 13 14 15 16 |
# File 'lib/inherited_resources_views/action_view.rb', line 12 def find(path, prefix = nil, partial = false, details = {}, key = nil) super rescue ::ActionView::MissingTemplate super(path, "inherited_resources", partial, details, key) end |
#find_template(original_template_path, format = nil, html_fallback = true) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/inherited_resources_views/action_view.rb', line 18 def find_template(original_template_path, format = nil, html_fallback = true) super rescue ::ActionView::MissingTemplate original_template_path.sub!(/^[\w]+/, "inherited_resources") super end |