Sha256: aac1411671d870704e778067a72f1f7329fa75fbc74aa32d7255ae96766c2a4a

Contents?: true

Size: 757 Bytes

Versions: 2

Compression:

Stored size: 757 Bytes

Contents

module Hancock::Gallery
  module Models
    module EmbeddedImage
      if Hancock::Gallery.mongoid?
        extend ActiveSupport::Concern

        include Hancock::Gallery::Paperclipable
        include Hancock::Gallery::AutoCrop
        # if Hancock::Gallery.config.watermark_support
        #   include Hancock::Gallery::Watermarkable
        # end

        include Hancock::Gallery.orm_specific('EmbeddedImage')

        included do
          set_default_auto_crop_params_for(:image)
          hancock_cms_attached_file(:image)
          # if Hancock::Gallery.config.watermark_support
          #   paperclip_with_watermark(:image)
          # else
          #   hancock_cms_attached_file(:image)
          # end
        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hancock_cms_gallery-1.0.2 lib/hancock/gallery/models/embedded_image.rb
hancock_cms_gallery-1.0.0 lib/hancock/gallery/models/embedded_image.rb