Sha256: 743cee6e7af4511d7011431b6cd471fca83c80cac65e0e92f28d6f205b5bea6d

Contents?: true

Size: 346 Bytes

Versions: 19

Compression:

Stored size: 346 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.options_text
          end
        else
          Spree.t(:all)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_core-2.0.13 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.12 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.11 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.10 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.9 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.8 app/helpers/spree/admin/images_helper.rb
spree_core-2.1.3 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.7 app/helpers/spree/admin/images_helper.rb
spree_core-2.1.2 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.6 app/helpers/spree/admin/images_helper.rb
spree_core-2.1.1 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.5 app/helpers/spree/admin/images_helper.rb
spree_core-2.1.0 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.4 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.3 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.2 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.1 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.0 app/helpers/spree/admin/images_helper.rb
spree_core-2.0.0.rc1 app/helpers/spree/admin/images_helper.rb