Resisting the Urge to Over-Engineer and Learning About Rails Delegated Types

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 3

  • @jpjpjpjpjpjpjpjp
    @jpjpjpjpjpjpjpjp 3 года назад +4

    Thanks! This is the first video I've seen on DelegatedTypes.
    I'm interested in trying it out in a scenario where I have two very similar models, but one has a couple extra fields. It wouldn't make sense for them to be the same db table because one would have lots of nil values, but they share a lot of functionality.
    For anyone watching: around 44:00 they start talking about DelegatedTypes and 59:00 they discuss the benefits over STI.

    • @ogirginc
      @ogirginc 2 года назад +3

      Thank you! Also, the first mention is on 38:10. Might be better to start watching from there, if you are only interested in delegated types.