spree/spree_gateway — pull request #22 by ugorelik (2012-07-19 19:51:16+00:00)
Title: Creditcards do not have STI and no type.

When the source is a Spree::Creditcard and error would get thrown, `undefined method type for Spree::Creditcard`.

Added a check to see if the source responds to type.