Sha256: 52b4379f3b01b9346d5b65a18e1b374166167680caa24c9e34b2689a86d6d5ba
Contents?: true
Size: 591 Bytes
Versions: 4
Compression:
Stored size: 591 Bytes
Contents
module Enjoy module Models module Mongoid module GalleryImage extend ActiveSupport::Concern include Enjoy::MongoidPaperclip included do acts_as_nested_set scope :sorted, -> { order_by([:lft, :asc]) } 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