Sha256: 19d142a9e08c2f292582ea2d61d665672256f94513a10af74794aeb6960defaa

Contents?: true

Size: 481 Bytes

Versions: 12

Compression:

Stored size: 481 Bytes

Contents

# So, ERB and SLIM fans want to make gem became independent of HAML
# Ok, let it be. But you will convert view partials youself
# 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

12 entries across 12 versions & 1 rubygems

Version Path
the_sortable_tree-1.9.4 lib/the_sortable_tree.rb
the_sortable_tree-1.9.3 lib/the_sortable_tree.rb
the_sortable_tree-1.9.2 lib/the_sortable_tree.rb
the_sortable_tree-1.9.1 lib/the_sortable_tree.rb
the_sortable_tree-1.9.0 lib/the_sortable_tree.rb
the_sortable_tree-1.8.6 lib/the_sortable_tree.rb
the_sortable_tree-1.8.5 lib/the_sortable_tree.rb
the_sortable_tree-1.8.0 lib/the_sortable_tree.rb
the_sortable_tree-1.7.1 lib/the_sortable_tree.rb
the_sortable_tree-1.7.0 lib/the_sortable_tree.rb
the_sortable_tree-1.6.0 lib/the_sortable_tree.rb
the_sortable_tree-1.5.0 lib/the_sortable_tree.rb