Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Apr 21, 2012
1 parent ae56932 commit a1d0315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/beer_can/rule.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ Tower.Authorization.BeerCan.Rule extends Class
@subjects.includes('all') || @subjects.includes(subject) || matchesSubjectClass(subject)
end

# TODO: Fix!
matchesSubjectClass -> (subject)
@subjects.matchesAny -> (sub)
# TODO: Fix!
@subjects.matchesAny -> (sub)
a = sub.kind_of(Module) && (subject.kind_of?(sub)
b = subject.class.to_s == sub.to_s
c = subject.kind_of?(Module) && subject.ancestors.include?(sub))
Expand Down

0 comments on commit a1d0315

Please sign in to comment.