fix revision count and drop observers

This commit is contained in:
shlok007 2017-01-04 22:27:46 -05:00 committed by Shlok Srivastava
parent 518ecc3d4e
commit b33e9ed28e
12 changed files with 69 additions and 34 deletions

View file

@ -1,4 +1,5 @@
class Track < ActiveRecord::Base
include RevisionCount
belongs_to :program
has_many :events, dependent: :nullify
@ -16,6 +17,10 @@ class Track < ActiveRecord::Base
before_validation :capitalize_color
def conference
program.conference
end
private
def generate_guid