Make ticket layout configurable
This commit is contained in:
parent
f37d3095e1
commit
a21d95c486
7 changed files with 19 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ class Conference < ActiveRecord::Base
|
|||
:end_date,
|
||||
:start_hour,
|
||||
:end_hour,
|
||||
:ticket_layout,
|
||||
:organization, presence: true
|
||||
|
||||
validates :short_title, uniqueness: true
|
||||
|
|
@ -73,6 +74,11 @@ class Conference < ActiveRecord::Base
|
|||
after_create :create_free_ticket
|
||||
after_update :delete_event_schedules
|
||||
|
||||
enum ticket_layout: {
|
||||
vertical: 0,
|
||||
horizontal: 1
|
||||
}
|
||||
|
||||
##
|
||||
# Checks if the user is registered to the conference
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue