search for: alltimestoryratingtotal

Displaying 1 result from an estimated 1 matches for "alltimestoryratingtotal".

2007 Apr 13
0
mixin behavior
...:count => rating.count) end self.transaction do self.delete_all totals.each do |total| total.save end end end end --- Then my models are pretty simple. I''d like to get a better aliasing technique in place, but this at least executes: --- class AllTimeStoryRatingTotal < ActiveRecord::Base belongs_to :story extend StoryRatingTotals def self.refresh_totals self.refresh_story_totals end end --- class WeeklyStoryRatingTotal < ActiveRecord::Base belongs_to :story extend StoryRatingTotals def self.refresh_totals self.refresh_story_total...