Method: Sequel::Model::Associations::AssociationReflection#qualify

Defined in:
lib/sequel/model/associations.rb

#qualify(table, col) ⇒ Object

Qualify col with the given table name.



487
488
489
490
491
492
493
494
495
496
# File 'lib/sequel/model/associations.rb', line 487

def qualify(table, col)
  transform(col) do |k|
    case k
    when Symbol, SQL::Identifier
      SQL::QualifiedIdentifier.new(table, k)
    else
      Sequel::Qualifier.new(table).transform(k)
    end
  end
end