Sha256: 11ec247055ea706723ab3abb6655eb59807326fd92a1825e064cd58f867a6bda
Contents?: true
Size: 779 Bytes
Versions: 3
Compression:
Stored size: 779 Bytes
Contents
module Enjoy module Models module Mongoid module Gallery extend ActiveSupport::Concern include Enjoy::MongoidPaperclip included do manual_slug :name acts_as_nested_set scope :sorted, -> { order_by([:lft, :asc]) } enjoy_cms_mongoid_attached_file(:image, styles: lambda { |attachment| attachment.instance.image_styles }, convert_options: lambda { |attachment| attachment.instance.image_convert_options }, content_type: { content_type: ["image/jpg", "image/jpeg", "image/png"] } ) end def image_styles {} end def image_convert_options {} end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.3.0.4 | lib/enjoy/models/mongoid/gallery.rb |
enjoy_cms-0.3.0.3 | lib/enjoy/models/mongoid/gallery.rb |
enjoy_cms-0.3.0.2 | lib/enjoy/models/mongoid/gallery.rb |