mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
fix revision count and drop observers
This commit is contained in:
parent
518ecc3d4e
commit
b33e9ed28e
12 changed files with 69 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue