Sha256: 489f7fdd7ad87d92b85fdabbb2505a477db40a21ecc89540c2e3d4e9a51501fe

Contents?: true

Size: 235 Bytes

Versions: 3

Compression:

Stored size: 235 Bytes

Contents

module Parentry
  module Strategy
    module Ltree
      module ClassMethods
        def parentry_depth_function
          Arel::Nodes::NamedFunction.new('nlevel', [arel_table[parentry_column]])
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parentry-1.8.0 lib/parentry/strategy/ltree/class_methods.rb
parentry-1.7.0 lib/parentry/strategy/ltree/class_methods.rb
parentry-1.6.0 lib/parentry/strategy/ltree/class_methods.rb