Skip to content
This repository
Browse code

Only use spree_account_path in orders/show if available

  • Loading branch information...
commit ae994821f4f85a7a67d9e765fce309d0763398db 1 parent 632b5d2
Ryan Bigg authored May 28, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  core/app/views/spree/orders/show.html.erb
4  core/app/views/spree/orders/show.html.erb
@@ -13,8 +13,8 @@
13 13
   <p data-hook="links">
14 14
     <%= link_to t(:back_to_store), spree.root_path, :class => "button" %>
15 15
     <% unless params.has_key? :checkout_complete %>
16  
-      <% if spree_current_user %>
17  
-        <%= link_to t(:my_account), spree.account_path, :class => "button" %>
  16
+      <% if spree_current_user && respond_to?(:spree_account_path) %>
  17
+        <%= link_to t(:my_account), spree_account_path, :class => "button" %>
18 18
       <% end %>
19 19
     <% end %>
20 20
   </p>

0 notes on commit ae99482

Please sign in to comment.
Something went wrong with that request. Please try again.