Navigation Menu

Skip to content

Commit

Permalink
add comment to law_of_demeter_check
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Nov 7, 2009
1 parent 78ce9ae commit b559047
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rails_best_practices/checks/law_of_demeter_check.rb
Expand Up @@ -2,6 +2,11 @@

module RailsBestPractices
module Checks
# Check to make sure not avoid the law of demeter.
#
# Implementation:
# 1. check all models to record belongs_to associations
# 2. check if calling belongs_to association's method or attribute
class LawOfDemeterCheck < Check

def interesting_nodes
Expand Down

0 comments on commit b559047

Please sign in to comment.