lib/trajectory/domain/story.rb in trajectory-0.1.1 vs lib/trajectory/domain/story.rb in trajectory-0.1.2
- old
+ new
@@ -109,10 +109,14 @@
# @return [true, false]
def in_iteration?(iteration)
iteration_id == iteration.id
end
- # @todo Not Yet Implemented
+ # Returns the iteration the story belongs to or false if iteration can't be
+ # found
+ #
+ # @return [Iteration, false] the iteration or false
def iteration
+ @iteration ||= DataStore.find_iteration_of_project_by_id(project, iteration_id)
end
end
end