Module: StoriesHelper

Defined in:
lib/branston/app/helpers/stories_helper.rb

Instance Method Summary collapse

Instance Method Details

#points_label(stories) ⇒ Object



3
4
5
6
7
# File 'lib/branston/app/helpers/stories_helper.rb', line 3

def points_label(stories)
  points = 0
  stories.map { |s| points += s.points }
  "(#{points} points)"
end