Last active
December 18, 2015 04:18
-
-
Save nsmith/5723951 to your computer and use it in GitHub Desktop.
Sub sku crossover skus
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
| def crossover_sku(sku) | |
| sku1 = sku.code.split("-")[0..3].join("-") | |
| sku2 = sku.code.split("-")[4..7].join("-") | |
| [sku1, sku2] | |
| end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment