Sha256: d9080434c09311042e46599d74354b0c2c5e8a12ed8246503c52a746ba341361

Contents?: true

Size: 378 Bytes

Versions: 7

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module SolidusSubscriptions
  module Spree
    module Variant
      module VariantPrettyName
        def pretty_name
          name = product.name
          name += " - #{options_text}" if options_text.present?
          name
        end
      end
    end
  end
end

Spree::Variant.prepend(SolidusSubscriptions::Spree::Variant::VariantPrettyName)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb
solidus_subscriptions-2.0.1 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb
solidus_subscriptions-2.0.0 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb
solidus_subscriptions-1.1.0 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb
solidus_subscriptions-1.0.1 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb
solidus_subscriptions-1.0.0 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb
solidus_subscriptions-1.0.0.rc1 app/decorators/models/solidus_subscriptions/spree/variant/variant_pretty_name.rb