spree/spree — pull request #3845 by SkylerRogers (2013-10-08 18:18:06+00:00)
Title: Expiry Method Fix

The expiry method needs to check for presence before parsing. An empty card expiration field will raise the error "no implicit conversion of nil into String" on submission.

Additionally, the :month and :year presence check was put inside of the expiry method instead of the attribute validator in order to avoid duplicate error messages on the user end.