Sha256: 720b503126691fb2672f483881be6366580774931b936ea2df3858745670c276

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

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

        included do
          field :name, type: String, localize: Enjoy::Gallery.configuration.localize

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

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enjoy_cms_gallery-0.4.1 lib/enjoy/gallery/models/mongoid/gallery.rb
enjoy_cms_gallery-0.4.0.2 lib/enjoy/gallery/models/mongoid/gallery.rb