lib/meducation_sdk/resources/board.rb in meducation_sdk-1.5.0 vs lib/meducation_sdk/resources/board.rb in meducation_sdk-1.5.1

- old
+ new

@@ -8,20 +8,24 @@ def created_by @created_by ||= User.find(created_by_id) end + def items + @items ||= BoardItem.where(board_id: self.id) + end end class BoardMock < Board extend Loquor::ResourceMock self.attributes = { id: 1, created_by_id: 8, owner_id: 5, owner_type: "Group", name: "Greatest Board", - description: "This is the greatest board ever!!" + description: "This is the greatest board ever!!", + created_at: "2013-04-20" } end end