Module: WithStats
Instance Method Summary collapse
Instance Method Details
#started?(user) ⇒ Boolean
6 7 8 |
# File 'app/models/with_stats.rb', line 6 def started?(user) stats_for(user).started? end |
#stats_for(user) ⇒ Object
2 3 4 |
# File 'app/models/with_stats.rb', line 2 def stats_for(user) Stats.from_statuses exercises.map { |it| it.status_for(user) } end |