module Qbrick::Orderable
If you use this mixin, your class must implement the following methods siblings(), returns the siblings of the same type of object
Public Class Methods
included(base)
click to toggle source
# File lib/qbrick/orderable.rb, line 6 def self.included(base) base.extend(ClassMethods) base.send :include, InstanceMethods base.after_create :set_position end