module Parentry::Strategy::Array::ClassMethods

Public Instance Methods

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