Sha256: dfc987df680c0201bd52f274bd854ffc93ac06328d1452522ffdbca6a78f044a
Contents?: true
Size: 671 Bytes
Versions: 133
Compression:
Stored size: 671 Bytes
Contents
# frozen_string_literal: true module Spree class ReturnItem < Spree::Base module EligibilityValidator class BaseValidator attr_reader :errors def initialize(return_item) @return_item = return_item @errors = {} end def eligible_for_return? raise NotImplementedError, I18n.t('spree.implement_eligible_for_return') end def requires_manual_intervention? raise NotImplementedError, I18n.t('spree.implement_requires_manual_intervention') end private def add_error(key, error) @errors[key] = error end end end end end
Version data entries
133 entries across 133 versions & 2 rubygems