Class: LolDba::RelationInspectorFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_dba/index_finding/relation_inspector_factory.rb

Constant Summary collapse

TYPES =
{
  belongs_to: BelongsTo,
  has_and_belongs_to_many: HasAndBelongsToMany,
  has_many: HasMany
}.freeze

Class Method Summary collapse

Class Method Details

.for(type) ⇒ Object



9
10
11
# File 'lib/lol_dba/index_finding/relation_inspector_factory.rb', line 9

def self.for(type)
  TYPES[type]
end