module Hancock::Gallery module Models module Mongoid module Gallery extend ActiveSupport::Concern included do field :name, type: String, localize: Hancock::Gallery.configuration.localize scope :sorted, -> { order_by([:lft, :asc]) } end end end end end