mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fixed redirect for match editing and added controller tests. Added wrestler school name to match edit form. Added authorization tests to all matches page.
This commit is contained in:
@@ -5,7 +5,6 @@ class Match < ActiveRecord::Base
|
||||
has_many :wrestlers, :through => :weight
|
||||
after_update :after_finished_actions, :if => :saved_change_to_finished?
|
||||
after_update :after_finished_actions, :if => :saved_change_to_winner_id?
|
||||
attr_accessor :redirect_path
|
||||
|
||||
def after_finished_actions
|
||||
if self.finished == 1 && self.winner_id != nil
|
||||
|
||||
Reference in New Issue
Block a user