Sha256: 1f7f8c8d1c0e8a52bcae65e6262a01d16d96a8e7e6778df2e09fc032d14ba625

Contents?: true

Size: 514 Bytes

Versions: 4

Compression:

Stored size: 514 Bytes

Contents

module Enjoy
  module Models
    module Mongoid
      module EmbeddedGalleryImage
        extend ActiveSupport::Concern
        include Enjoy::MongoidPaperclip

        included do

          enjoy_cms_mongoid_attached_file(:image,
                    styles: lambda { |attachment| attachment.instance.image_styles },
                    content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] }
          )
        end

        def image_styles
          {}
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enjoy_cms-0.2.1 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.2.0.3.2 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.2.0.3.1 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.2.0.3 lib/enjoy/models/mongoid/embedded_gallery_image.rb