Sha256: 46b53811fac6f1563934d3993d3099b37d2dadec55ed57c098d34dbb3720206d

Contents?: true

Size: 181 Bytes

Versions: 40

Compression:

Stored size: 181 Bytes

Contents

module WithStats
  def stats_for(user)
    return unless user.present?
    Stats.from_statuses statuses_for(user)
  end

  def started?(user)
    stats_for(user).started?
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
mumuki-domain-9.7.0 app/models/with_stats.rb
mumuki-domain-9.6.0 app/models/with_stats.rb
mumuki-domain-9.5.0 app/models/with_stats.rb
mumuki-domain-9.4.0 app/models/with_stats.rb
mumuki-domain-9.3.0 app/models/with_stats.rb
mumuki-domain-9.2.1 app/models/with_stats.rb
mumuki-domain-9.2.0 app/models/with_stats.rb
mumuki-domain-9.1.2 app/models/with_stats.rb
mumuki-domain-9.1.1 app/models/with_stats.rb
mumuki-domain-9.1.0 app/models/with_stats.rb
mumuki-domain-9.0.6 app/models/with_stats.rb
mumuki-domain-9.0.5 app/models/with_stats.rb
mumuki-domain-9.0.4 app/models/with_stats.rb
mumuki-domain-9.0.3 app/models/with_stats.rb
mumuki-domain-9.0.2 app/models/with_stats.rb
mumuki-domain-9.0.0 app/models/with_stats.rb
mumuki-domain-8.6.1 app/models/with_stats.rb
mumuki-domain-8.6.0 app/models/with_stats.rb
mumuki-domain-8.5.0 app/models/with_stats.rb
mumuki-domain-8.4.0 app/models/with_stats.rb