Skip to content

Commit

Permalink
memoize service code prefix to prevent constant reassignment
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorganIO committed Jun 2, 2015
1 parent 59c84a4 commit 53457ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/calculator/shipping/usps/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Calculator::Shipping
module Usps
class Base < Spree::Calculator::Shipping::ActiveShipping::Base

SERVICE_CODE_PREFIX = {
SERVICE_CODE_PREFIX ||= {
:international => 'intl',
:domestic => 'dom'
}
Expand Down

0 comments on commit 53457ed

Please sign in to comment.