Reading
this
a little bit earlier would have saved me a lot of time. In short:
callbacks such as :before_add
does not work with
has_many :through
, and the documentation does not tell you that.
To get callbacks, add them to the join model.
Reading
this
a little bit earlier would have saved me a lot of time. In short:
callbacks such as :before_add
does not work with
has_many :through
, and the documentation does not tell you that.
To get callbacks, add them to the join model.