Skip to content

Commit

Permalink
Spree::Payment.class.undescore will always convert spree/payment
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoamaro authored and radar committed Oct 22, 2013
1 parent bf36d4c commit 7cb3efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views/spree/admin/payments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<% content_for :page_title do %>
<i class="icon-arrow-right"></i>
<%= Spree.t("activerecord.models.#{@payment.class.to_s.underscore}.one") %>
<%= I18n.t(:one, scope: "activerecord.models.spree/payment") %>
<i class="icon-arrow-right"></i>
<%= payment_method_name(@payment) %>
<% end %>
Expand Down

0 comments on commit 7cb3efa

Please sign in to comment.