Enable track requests
This commit is contained in:
parent
0f154d07c9
commit
2f9eb04219
14 changed files with 155 additions and 20 deletions
|
|
@ -1,9 +1,10 @@
|
|||
# cannot delete program if there are events submitted
|
||||
|
||||
class Cfp < ActiveRecord::Base
|
||||
TYPES = %w(events booths).freeze
|
||||
TYPES = %w(events booths tracks).freeze
|
||||
|
||||
scope :for_events, (-> { find_by(cfp_type: 'events') })
|
||||
scope :for_tracks, (-> { find_by(cfp_type: 'tracks') })
|
||||
|
||||
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
|
||||
belongs_to :program
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue