Sha256: da9eacb50624cebf166420e0402123df49d8da1e0d5454fd6e585fe6ab6b1de4

Contents?: true

Size: 285 Bytes

Versions: 1

Compression:

Stored size: 285 Bytes

Contents

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

Spree::Variant.prepend Spree::Variants::VariantPrettyName

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_subscriptions-alpha-0.0.4 app/decorators/spree/variant_pretty_name.rb