Method 'velocity' renamed to 'scrum_statistics'

pull/6827/head
friflaj 15 years ago
parent e69804afb5
commit 944054cbf9
  1. 2
      app/models/sprint.rb
  2. 2
      lib/issue_patch.rb

@ -62,7 +62,7 @@ class Sprint < Version
def eta def eta
return nil if ! self.start_date return nil if ! self.start_date
v = self.project.velocity v = self.project.scrum_statistics
return nil if ! v or ! v[:days_per_point] return nil if ! v or ! v[:days_per_point]
# assume 5 out of 7 are working days # assume 5 out of 7 are working days

@ -76,7 +76,7 @@ module IssuePatch
def velocity_based_estimate def velocity_based_estimate
return nil if !self.is_story? || ! self.story_points || self.story_points <= 0 return nil if !self.is_story? || ! self.story_points || self.story_points <= 0
v = self.project.velocity v = self.project.scrum_statistics
return nil if ! v or ! v[:days_per_point] return nil if ! v or ! v[:days_per_point]
return Integer(self.story_points * v[:days_per_point]) return Integer(self.story_points * v[:days_per_point])

Loading…
Cancel
Save