Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some more one liners instead of 3 liners

  • Loading branch information...
commit cd09303fa3933c607e16d825e45e249d99d00a4d 1 parent a26f9dd
@PragTob authored
Showing with 3 additions and 8 deletions.
  1. +3 −8 app/models/sprint.rb
View
11 app/models/sprint.rb
@@ -56,14 +56,11 @@ def user_stories_not_in_progress
end
def user_stories_completed
- user_stories.select do |each|
- each.status == "completed"
- end
+ user_stories.select {|each| each.status == "completed"}
end
def user_stories_estimated
- estimated = user_stories.reject { |user_story| user_story.estimation.nil? }
- estimated
+ user_stories.reject { |user_story| user_story.estimation.nil? }
end
def user_stories_in_progress
@@ -73,9 +70,7 @@ def user_stories_in_progress
end
def user_stories_for_user(user)
- user_stories_in_progress.select do |each|
- each.users.include?(user)
- end
+ user_stories_in_progress.select {|each| each.users.include?(user)}
end
def end
Please sign in to comment.
Something went wrong with that request. Please try again.