Skip to content

Instantly share code, notes, and snippets.

@retorquere
Created March 19, 2010 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retorquere/338110 to your computer and use it in GitHub Desktop.
Save retorquere/338110 to your computer and use it in GitHub Desktop.
class Sprint < Version
named_scope :open_sprints, lambda { |project|
{
:order => 'start_date ASC, effective_date ASC',
:conditions => [ "status = 'open' and project_id = ?", project.id ]
}
}
def stories
return Story.sprint_backlog(self)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment