Ticket #8582: better_per_request_view_paths_fix.diff
| File better_per_request_view_paths_fix.diff, 0.7 kB (added by dasil003, 2 years ago) |
|---|
-
actionpack/lib/action_view/base.rb
old new 460 460 def extract_base_path_from(full_path) 461 461 view_paths.find { |p| full_path[0..p.size - 1] == p } 462 462 end 463 464 # Pull view_paths from the controller if necessary since it may have been updated since init. 465 def view_paths 466 @controller && @controller.respond_to?(:view_paths) ? @controller.view_paths : @view_paths 467 end 463 468 464 469 # Determines the template's file extension, such as rhtml, rxml, or rjs. 465 470 def find_template_extension_for(template_path)