Displaying 1 result from an estimated 1 matches for "monthlystoryratingtot".
Did you mean:
monthlystoryratingtotal
2007 Apr 13
0
mixin behavior
..._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_totals(1.week.ago)
end
end
---
class MonthlyStoryRatingTotal < ActiveRecord::Base
belongs_to :story
extend StoryRatingTotals
def self.refresh_totals
self.refresh_story_totals(1.month.ago)
end
end
---
When testing through the console, I can only execute a single one of
the class methods ( e.g. MonthlyStoryRatingTotal.refresh_totals).
Which...