Skip to content

Commit

Permalink
Only use spree_account_path in orders/show if available
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed May 28, 2012
1 parent 632b5d2 commit ae99482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/app/views/spree/orders/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<p data-hook="links">
<%= link_to t(:back_to_store), spree.root_path, :class => "button" %>
<% unless params.has_key? :checkout_complete %>
<% if spree_current_user %>
<%= link_to t(:my_account), spree.account_path, :class => "button" %>
<% if spree_current_user && respond_to?(:spree_account_path) %>
<%= link_to t(:my_account), spree_account_path, :class => "button" %>
<% end %>
<% end %>
</p>
Expand Down

0 comments on commit ae99482

Please sign in to comment.