we really only want the first

pull/6827/head
Jens Ulferts 9 years ago
parent b5bb1c41b2
commit bf7101d263
  1. 2
      app/models/story.rb

@ -78,8 +78,8 @@ class Story < WorkPackage
Story.where(Story.condition(project_id, sprint_id))
.joins(:status)
.order(Story::ORDER)
.limit(1)
.offset(rank -1)
.first
end
def self.types

Loading…
Cancel
Save