Skip to content

Instantly share code, notes, and snippets.

@jayuen
Last active December 26, 2015 09:19
Show Gist options
  • Save jayuen/7128834 to your computer and use it in GitHub Desktop.
Save jayuen/7128834 to your computer and use it in GitHub Desktop.
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