Sha256: cbd21761b4bfb5a680c78dc0d3a5b0087d1d0df351148616852f36051590c663

Contents?: true

Size: 466 Bytes

Versions: 3

Compression:

Stored size: 466 Bytes

Contents

module RecordFilter
  module ColumnParser # :nodoc: all

    protected

    def parse_column_in_table(column, table)
      while column.is_a?(Hash)
        join = table.find_join(column.keys[0])
        if join
          table = join.right_table
        else
          table.join_association(column.keys[0])
          table = table.find_join(column.keys[0]).right_table
        end
        column = column.values[0]
      end
      [column, table]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
record_filter-1.0.1 lib/record_filter/column_parser.rb
record_filter-1.0.0 lib/record_filter/column_parser.rb
record_filter-0.9.17 lib/record_filter/column_parser.rb