Sha256: a1354779353f8604313002687c09557dabdb1f9f6c89e8eb9a03bcc239dabdff

Contents?: true

Size: 259 Bytes

Versions: 6

Compression:

Stored size: 259 Bytes

Contents

module Workarea
  class ReviewSummary
    def pending_reviews_count
      @pending_reviews_count ||= Review.pending.count
    end

    def recent_reviews_count
      @recent_reviews_count ||= Review.where(:created_at.gte => 1.day.ago).count
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-reviews-3.1.2 app/queries/workarea/review_summary.rb
workarea-reviews-3.1.1 app/queries/workarea/review_summary.rb
workarea-reviews-3.1.0 app/queries/workarea/review_summary.rb
workarea-reviews-3.0.10 app/queries/workarea/review_summary.rb
workarea-reviews-3.0.9 app/queries/workarea/review_summary.rb
workarea-reviews-3.0.8 app/queries/workarea/review_summary.rb