lib/ajaxful_rating.rb
# Updates the cached average column in the rateable model.
Updates the cached average column in the rateable model.
Updates the cached average column in the rateable model .
def update_cached_average
        if self.class.caching_average?
          self.update_attribute(self.class.cached_average_column, self.rate_average(false))
        end
      end
def update_cached_average if self . class . caching_average? self . update_attribute ( self . class . cached_average_column , self . rate_average ( false ) ) end end
Updates the cached average column in the rateable model.
Updates the cached average column in the rateable model .