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.2.0 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.0.rc5 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.0.rc4 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.0.rc3 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.13 app/helpers/spree/admin/images_helper.rb
spree_backend-4.0.6 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.0.rc2 app/helpers/spree/admin/images_helper.rb
spree_backend-3.7.13 app/helpers/spree/admin/images_helper.rb
spree_backend-4.0.5 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.12 app/helpers/spree/admin/images_helper.rb
spree_backend-3.7.12 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.0.rc1 app/helpers/spree/admin/images_helper.rb
spree_backend-4.0.4 app/helpers/spree/admin/images_helper.rb
spree_backend-3.7.11 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.11 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.10 app/helpers/spree/admin/images_helper.rb
spree_backend-4.2.0.beta app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.9 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.8 app/helpers/spree/admin/images_helper.rb
spree_backend-4.1.7 app/helpers/spree/admin/images_helper.rb