Browse files

Class variable is not invited to party

  • Loading branch information...
1 parent d3b30c6 commit 73b4b6044dbb7bc1edc60fec1eec5c0d6bac2a80 @kneath committed May 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/burndown/milestone_event.rb
View
2 lib/burndown/milestone_event.rb
@@ -13,7 +13,7 @@ def prev_record
end
def num_tickets_open
- @@num_tickets_open = self.open_tickets.split(',').size
+ @num_tickets_open ||= self.open_tickets.split(',').size
end
def tickets_opened

0 comments on commit 73b4b60

Please sign in to comment.