mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-09 07:39:06 +00:00
Still moving logic out of the models
This commit is contained in:
@@ -24,6 +24,9 @@ class School < ActiveRecord::Base
|
||||
self.score = newScore
|
||||
self.save
|
||||
end
|
||||
if Rails.env.production?
|
||||
handle_asynchronously :calcScore
|
||||
end
|
||||
|
||||
def totalWrestlerPoints
|
||||
points = 0
|
||||
|
||||
Reference in New Issue
Block a user