mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Cache other pages that users will frequent
This commit is contained in:
@@ -6,6 +6,8 @@ class Match < ActiveRecord::Base
|
||||
|
||||
after_save do
|
||||
if self.finished == 1 && self.winner_id != nil
|
||||
wrestler1.touch
|
||||
wrestler2.touch
|
||||
advance_wrestlers
|
||||
calcSchoolPoints
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Wrestler < ActiveRecord::Base
|
||||
belongs_to :school
|
||||
belongs_to :weight
|
||||
belongs_to :school, touch: true
|
||||
belongs_to :weight, touch: true
|
||||
has_one :tournament, through: :weight
|
||||
has_many :matches, through: :weight
|
||||
has_many :deductedPoints, class_name: "Teampointadjust"
|
||||
|
||||
Reference in New Issue
Block a user