Skip to content

Commit

Permalink
Handle users with no api keys
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 12, 2016
1 parent 0fb02f6 commit 1fb9b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/accounts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>
<p>
<small>
Rate limit: <strong><%= current_user.current_api_key.rate_limit %> requests per minute</strong>
Rate limit: <strong><%= current_user.current_api_key.try(:rate_limit) || 0 %> requests per minute</strong>
</small>
</p>
</div>
Expand Down

0 comments on commit 1fb9b58

Please sign in to comment.