Sha256: af10ca472ca9f15d94fa814a055c6acfabb69be33bc616fdc102e293b7c18691

Contents?: true

Size: 427 Bytes

Versions: 4

Compression:

Stored size: 427 Bytes

Contents

module Enjoy::Gallery
  module Models
    module Mongoid
      module Gallery
        extend ActiveSupport::Concern

        included do
          if defined?(RailsAdminComments)
            include RailsAdminComments::Commentable
          end
          field :name, type: String, localize: Enjoy::Gallery.configuration.localize

          scope :sorted, -> { order_by([:lft, :asc]) }
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enjoy_cms_gallery-0.4.0.1 lib/enjoy/gallery/models/mongoid/gallery.rb
enjoy_cms_gallery-0.4.0 lib/enjoy/gallery/models/mongoid/gallery.rb
enjoy_cms_gallery-0.4.0.beta3 lib/enjoy/gallery/models/mongoid/gallery.rb
enjoy_cms_gallery-0.4.0.beta1 lib/enjoy/gallery/models/mongoid/gallery.rb