Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Cart compatibility upgrade #676

Merged
merged 6 commits into from
Jul 10, 2014
Merged

Conversation

shippy
Copy link
Contributor

@shippy shippy commented Jul 10, 2014

To update possible old Cart structures stored in session. (This branch fails a test in the EquipmentModel spec, that it failed prior to branching off development.)

@squidgetx
Copy link
Contributor

Looks good to me

# than a Hash (see #587), regenerate the Cart.
# TODO: Remove in ~2015, when nobody could conceivably run the old app?
def make_cart_compatible
if session[:cart].items.is_a? Array
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change this to test for anything that isn't a hash, rather than specifically arrays? Not sure it's necessary but once we're already testing, we can eliminate anything invalid.

shippy added a commit that referenced this pull request Jul 10, 2014
Implements cart compatibility upgrade, as per #667.
@shippy shippy merged commit 8114287 into development Jul 10, 2014
@squidgetx squidgetx deleted the 667_cart_compatibility_upgrade branch July 22, 2014 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants