class ActionView::Base
def render_partial_with_base_view_path_handling(partial_path, local_assigns = nil, deprecated_local_assigns = nil) #:nodoc:
def render_partial_with_base_view_path_handling(partial_path, local_assigns = nil, deprecated_local_assigns = nil) #:nodoc: if partial_path.is_a?(String) unless partial_path.include?("/") unless self.class.base_view_path.nil? partial_path = "#{self.class.base_view_path}/#{partial_path}" end end end begin render_partial_without_base_view_path_handling(partial_path, local_assigns, deprecated_local_assigns) rescue ArgumentError # edge rails > 2.1 changed render_partial to accept only one arg render_partial_without_base_view_path_handling(partial_path) end end