Sha256: c88af3215a2799d8786491b4416006844e7b4794a05273cf6a42d445b9cee1e2

Contents?: true

Size: 211 Bytes

Versions: 4

Compression:

Stored size: 211 Bytes

Contents

module Parentry
  module Strategy
    module Array
      module ClassMethods
        def parentry_depth_function
          Arel.sql("array_length(#{parentry_column}, 1)")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
parentry-1.5.0 lib/parentry/strategy/array/class_methods.rb
parentry-1.4.0 lib/parentry/strategy/array/class_methods.rb
parentry-1.3.0 lib/parentry/strategy/array/class_methods.rb
parentry-1.2.0 lib/parentry/strategy/array/class_methods.rb