Timeline for Rails: Useful example of delegate and Law of Demeter
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 12, 2013 at 16:15 | audit | Suggested edits | |||
Nov 18, 2013 at 16:04 | |||||
Oct 16, 2013 at 9:57 | answer | added | pdr | timeline score: 1 | |
Oct 16, 2013 at 5:14 | review | First posts | |||
Oct 16, 2013 at 5:50 | |||||
Oct 16, 2013 at 4:59 | comment | added | user2158382 |
According to the book im reading 'Rails Antipatterns', breaking the law of demeter is when I am trying to directly access a method/attribute of a model that does not belong to me. Example: I am trying to access find_by_promo_type from the Game model through promotions
|
|
Oct 16, 2013 at 4:56 | history | asked | user2158382 | CC BY-SA 3.0 |