Module: Rankable::Model

Extended by:
ActiveSupport::Concern
Defined in:
lib/rankable/model.rb

Overview

Includable module, for ActiveRecord::Base. By default, the “rank” column is used to store the sort order. To override:

class Article < ActiveRecord::Base
  include Rankable::Model
  self.rankable_column_name = "position"
end

Defined Under Namespace

Modules: ClassMethods