Skip to content

Commit

Permalink
Fix issue with standalone ActionView
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Oct 9, 2009
1 parent 2954cf1 commit 16a48a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actionpack/lib/action_view/render/partials.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -296,7 +296,10 @@ def find_template(path = @path)
end end


def _find_template(path) def _find_template(path)
prefix = @view.controller.controller_path unless path.include?(?/) if controller = @view.controller
prefix = controller.controller_path unless path.include?(?/)
end

@view.find(path, {:formats => @view.formats}, prefix, true) @view.find(path, {:formats => @view.formats}, prefix, true)
end end


Expand Down

0 comments on commit 16a48a9

Please sign in to comment.