Is has_many => :through a violation of the Law of Demeter?

124 Views Asked by At

If it is, what's its defence? And if it isn't, why isn't it?

1

There are 1 best solutions below

0
On BEST ANSWER

I think it is declaring new neighbor, akin to delegation. OTOH, if it were possible, it might be getting a bit bad to do multiple :through levels... (Do I remember correctly that they made this possible lately?)