Sha256: 070955b002c6a022b80241da21d043f7827a8e35f8820fce3f5f5e81877a07e2

Contents?: true

Size: 516 Bytes

Versions: 14

Compression:

Stored size: 516 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

14 entries across 14 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.7.3 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.7.2 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.7.1 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.7 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.6.2 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.6.1 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.6 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.5 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.4 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.3 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.2.1 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.2 lib/enjoy/models/mongoid/embedded_gallery_image.rb
enjoy_cms-0.3.1.2 lib/enjoy/models/mongoid/embedded_gallery_image.rb