lib/troo/models/comment.rb in troo-0.0.4 vs lib/troo/models/comment.rb in troo-0.0.5
- old
+ new
@@ -15,18 +15,22 @@
index :external_card_id
index :external_comment_id
index :external_member_id
def board
- Troo::BoardRetrieval.retrieve(self.external_board_id)
+ BoardRetrieval.retrieve(self.external_board_id)
end
def card
- Troo::CardRetrieval.retrieve(self.external_card_id)
+ CardRetrieval.retrieve(self.external_card_id)
end
def member
- Troo::MemberRetrieval.retrieve(self.external_member_id)
+ MemberRetrieval.retrieve(self.external_member_id)
+ end
+
+ def decorator(options = {})
+ CommentDecorator.new(self, options)
end
end
end