Sha256: d2c0001de5f74c7b880493d9f4a821f8522418b9251dd816c6bcb6e75dce0e2f

Contents?: true

Size: 521 Bytes

Versions: 9

Compression:

Stored size: 521 Bytes

Contents

if Enjoy::Catalog.config.gallery_support
  module Enjoy::Catalog
    _parent_class = Enjoy::Gallery::Image if Enjoy::Catalog.active_record?
    _parent_class = Enjoy::Gallery::EmbeddedImage if Enjoy::Catalog.mongoid?

    class ItemImage < _parent_class
      include Enjoy::Catalog::Models::ItemImage

      include Enjoy::Catalog::Decorators::ItemImage

      rails_admin(&Enjoy::Catalog::Admin::ItemImage.config(nil, rails_admin_add_fields) { |config|
        rails_admin_add_config(config)
      })
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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