Sha256: 34c41cc3928ef27cb87131b2505c91efe6edc79260c0f99f98d8ac482ae09208
Contents?: true
Size: 700 Bytes
Versions: 14
Compression:
Stored size: 700 Bytes
Contents
module Enjoy module Models module Mongoid module GalleryImage extend ActiveSupport::Concern include Enjoy::MongoidPaperclip included do if defined?(RailsAdminComments) include RailsAdminComments::Commentable end 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
14 entries across 14 versions & 1 rubygems