Created
March 14, 2014 17:50
-
-
Save 0xjmp/9553028 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unless address.state_id do | |
| state = Spree::State.where(abbr: address.state_name).first | |
| address.state_id = state.id if state | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment