Sha256: 253dfb17f59d89770c5f48899b13f38efc28ec92419321d1be54a8dcf79e9c4d

Contents?: true

Size: 350 Bytes

Versions: 6

Compression:

Stored size: 350 Bytes

Contents

require "haml"
require "the_sortable_tree/engine"
require "the_sortable_tree/version"

module TheSortableTree
  # include TheSortableTree::Scopes
  module Scopes
    def self.included(base)
      base.class_eval do
        scope :nested_set,          order('lft ASC')
        scope :reversed_nested_set, order('lft DESC')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
the_sortable_tree-1.4.8 lib/the_sortable_tree.rb
the_sortable_tree-1.4.7 lib/the_sortable_tree.rb
the_sortable_tree-1.4.6 lib/the_sortable_tree.rb
the_sortable_tree-1.2.0 lib/the_sortable_tree.rb
the_sortable_tree-1.1.3 lib/the_sortable_tree.rb
the_sortable_tree-1.1.1 lib/the_sortable_tree.rb