Last active
December 26, 2015 09:19
-
-
Save jayuen/7128834 to your computer and use it in GitHub Desktop.
This file contains 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 has_skus? | |
from_adjustment_has_sku? or to_adjustment_has_sku? | |
end | |
def from_adjustment_has_sku? | |
from_adjustment.try(:sku).present? | |
def to_adjustment_has_sku? | |
to_adjustment.try(:sku).present? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment