module Parentry::Strategy::Ltree::ClassMethods

Public Instance Methods

parentry_depth_function() click to toggle source
# File lib/parentry/strategy/ltree/class_methods.rb, line 5
def parentry_depth_function
  Arel.sql("nlevel(#{parentry_column})")
end