Sha256: 906626da928109f1e124cbd4d00f2ffc5f48b55c3a3cc124380b6ce923de52d1

Contents?: true

Size: 272 Bytes

Versions: 134

Compression:

Stored size: 272 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  module Admin
    module PicturesHelper
      def preview_size(size)
        Alchemy::Picture::THUMBNAIL_SIZES.fetch(
          size,
          Alchemy::Picture::THUMBNAIL_SIZES[:medium]
        )
      end
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
alchemy_cms-7.0.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.9 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.8 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.7 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.0 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.0.pre.rc1 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.6 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.0.pre.c app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.0.pre.b app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.5 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.0.14 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.4 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-7.0.0.pre.a app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.0.13 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.3 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.2 app/helpers/alchemy/admin/pictures_helper.rb
alchemy_cms-6.1.1 app/helpers/alchemy/admin/pictures_helper.rb