lib/is_reviewable/reviewable.rb
# Get the total number of reviews for this object.
#
Get the total number of reviews for this object.
Get the total number of reviews for this object .
def total_reviews(recalculate = false)
        if !recalculate && self.reviewable_caching_fields?(:total_reviews)
          self.total_reviews
        else
          ::Review.count(:conditions => self.reviewable_conditions)
        end
      end
def total_reviews ( recalculate = false ) if ! recalculate && self . reviewable_caching_fields? ( :total_reviews ) self . total_reviews else :: Review . count ( :conditions => self . reviewable_conditions ) end end
Get the total number of reviews for this object.
Get the total number of reviews for this object .
recalculate
<not_specific>