spree-contrib/spree_active_shipping — pull request #197 by BenMorganIO (2014-10-11 06:25:12+00:00)
Title: memoize service code prefix to prevent constant reassignment

While using spree active shipping, I was receiving this warning message from sidekiq:

```ruby
23:18:55 worker.1 | /Users/benmorgan/.rvm/gems/ruby-2.1.2/bundler/gems/spree_active_shipping-bdcb1360360b/app/models/spree/calculator/shipping/usps/base.rb:6: warning: already initialized constant Spree::Calculator::Shipping::Usps::Base::SERVICE_CODE_PREFIX
23:18:55 worker.1 | /Users/benmorgan/.rvm/gems/ruby-2.1.2/bundler/gems/spree_active_shipping-bdcb1360360b/app/models/spree/calculator/shipping/usps/base.rb:6: warning: previous definition of SERVICE_CODE_PREFIX was here
```

This PR contains a memoization onto the `SERVICE_CODE_PREFIX` to prevent reassignment when in a concurrent environment.