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.23.0 app/models/with_stats.rb
mumuki-domain-9.22.1 app/models/with_stats.rb
mumuki-domain-9.22.0 app/models/with_stats.rb
mumuki-domain-9.21.0 app/models/with_stats.rb
mumuki-domain-9.20.0 app/models/with_stats.rb
mumuki-domain-9.19.0 app/models/with_stats.rb
mumuki-domain-9.18.0 app/models/with_stats.rb
mumuki-domain-9.17.0 app/models/with_stats.rb
mumuki-domain-9.16.0 app/models/with_stats.rb
mumuki-domain-9.15.0 app/models/with_stats.rb
mumuki-domain-9.14.1 app/models/with_stats.rb
mumuki-domain-9.14.0 app/models/with_stats.rb
mumuki-domain-9.13.1 app/models/with_stats.rb
mumuki-domain-9.13.0 app/models/with_stats.rb
mumuki-domain-9.12.0 app/models/with_stats.rb
mumuki-domain-9.11.0 app/models/with_stats.rb
mumuki-domain-9.10.0 app/models/with_stats.rb
mumuki-domain-9.9.0 app/models/with_stats.rb
mumuki-domain-9.8.1 app/models/with_stats.rb
mumuki-domain-9.8.0 app/models/with_stats.rb