Sha256: 63cf13f2fe60ad3f1f0665d9774c25fe271760f1803290097bb206c41057edcb

Contents?: true

Size: 983 Bytes

Versions: 9

Compression:

Stored size: 983 Bytes

Contents

module Enjoy::Catalog
  module Admin
    module ItemImage
      def self.config(nav_label = nil, fields = {})
        if Enjoy::Catalog.config.gallery_support
          if Enjoy::Catalog.mongoid?
            if block_given?
              Enjoy::Gallery::Admin::EmbeddedImage.config(fields) do |config|
                yield config
              end
            else
              Enjoy::Gallery::Admin::EmbeddedImage.config(fields)
            end

          else
            nav_label ||= I18n.t('enjoy.catalog')
            if block_given?
              Enjoy::Gallery::Admin::Image.config(nav_label, fields) do |config|
                yield config
              end
            else
              Enjoy::Gallery::Admin::Image.config(nav_label, fields)
            end
          end #if Enjoy::Catalog.mongoid?
        end #if Enjoy::Catalog.config.gallery_support

      end #def self.config(fields = {})

    end #module ItemImage
  end #module Admin
end #module Enjoy::Catalog

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
enjoy_cms_catalog-0.4.1 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.6 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.5 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.4 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.3 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.2 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.1 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0 lib/enjoy/catalog/admin/item_image.rb
enjoy_cms_catalog-0.4.0.beta3 lib/enjoy/catalog/admin/item_image.rb