Sha256: fc35b13413a1b55a183bd53a6f52335b04843832afa25b500c7a38ec43f1d1e2

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

module Enjoy::Gallery
  module Models
    module Mongoid
      module Image
        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/image.rb
enjoy_cms_gallery-0.4.0.2 lib/enjoy/gallery/models/mongoid/image.rb