archive1/app/models/archive_sort_order.rb

4 lines
124 B
Ruby

class ArchiveSortOrder
include Mongoid::Document
field :sort_order, :type => Boolean # true => desc , false => asc
end