Skip to content

Instantly share code, notes, and snippets.

View damianlegawiec's full-sized avatar
🇺🇦

Damian Legawiec damianlegawiec

🇺🇦
View GitHub Profile
@kushniryb
kushniryb / Module#prepend.md
Last active November 2, 2020 13:12
Module#prepend usage

Consider using Module#prepend over Module#class_eval as it's much cleaner and least invasive method of overriding existing Spree functionality.

Please, refer to the following articles for additional details about Module#prepend and method lookup in Ruby:

Usage example:

@swrobel
swrobel / spree_1.3.3_to_2.0.4.md
Last active December 18, 2018 16:48
HOWTO: Upgrade Spree 1.3.3 to 2.0.4

HOWTO: Upgrade Spree 1.3.3 to 2.0.4

These steps were sufficient to upgrade Cult Cosmetics to Spree 2.0.4 from 1.3.3. Here are some details on our environment.

  • We only have single-variant products
  • We are not making use of stock locations (single warehouse)
  • Frontend entirely overridden w/ custom bootstrap layout
  • Braintree gateway
  • Rails 3.2.14
  • Upgraded from Ruby 1.9.3-p448 to 2.0.0-p247 in the process (no issues)