Sha256: 72c7eef97454f9794a39480aa5be5595dce23c9875374a032d151236e6a531c3

Contents?: true

Size: 353 Bytes

Versions: 138

Compression:

Stored size: 353 Bytes

Contents

module Spree
  module Admin
    module ImagesHelper
      def options_text_for(image)
        if image.viewable.is_a?(Spree::Variant)
          if image.viewable.is_master?
            Spree.t(:all)
          else
            image.viewable.sku_and_options_text
          end
        else
          Spree.t(:all)
        end
      end
    end
  end
end

Version data entries

138 entries across 138 versions & 2 rubygems

Version Path
spree_backend-4.8.4 app/helpers/spree/admin/images_helper.rb
spree_backend-4.8.3 app/helpers/spree/admin/images_helper.rb
spree_backend-4.8.2 app/helpers/spree/admin/images_helper.rb
spree_backend-4.8.1 app/helpers/spree/admin/images_helper.rb
spree_backend-4.0.9 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.15 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.7 app/helpers/spree/admin/images_helper.rb
spree_backend-4.3.3 app/helpers/spree/admin/images_helper.rb
spree_backend-4.7.2 app/helpers/spree/admin/images_helper.rb
spree_backend-4.6.2 app/helpers/spree/admin/images_helper.rb
spree_backend-4.7.1 app/helpers/spree/admin/images_helper.rb
spree_backend-4.7.0 app/helpers/spree/admin/images_helper.rb
spree_backend-4.6.1 app/helpers/spree/admin/images_helper.rb
spree_backend-4.6.0 app/helpers/spree/admin/images_helper.rb
spree_backend-4.5.1 app/helpers/spree/admin/images_helper.rb
spree_backend-4.5.0 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.6 app/helpers/spree/admin/images_helper.rb
spree_backend-4.3.2 app/helpers/spree/admin/images_helper.rb
spree_backend-4.4.1 app/helpers/spree/admin/images_helper.rb
spree_backend-4.4.0 app/helpers/spree/admin/images_helper.rb