Skip to content

Commit

Permalink
Don't fail if token is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mihar committed Feb 2, 2016
1 parent 533caa3 commit dd5e023
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/admin/customers/show.html.haml
Expand Up @@ -14,9 +14,10 @@
.details.panel.panel-default
.panel-body
= render "fields", resource: @customer
%hr
%strong Javni dostop
%p= link_to token_url(@customer.token), token_url(@customer.token)
- if @customer.token?
%hr
%strong Javni dostop
%p= link_to token_url(@customer.token), token_url(@customer.token)

- if @customer.company?
%hr
Expand Down

0 comments on commit dd5e023

Please sign in to comment.