samedi 4 janvier 2020

Which technicque would NOT be useful to share common attributes and behaviors between two ActiveRecord Models?

  1. a Rails Concern
  2. a polymorphic association
  3. single table inheritance
  4. a Ruby module as a mixin

all of above can be used to share common attributes and behaviors between more than 2 ActiveRecord models. I searched several articles but couldn't figure it out clearly.

Aucun commentaire:

Enregistrer un commentaire