Add invite responsible to form

It is added so that user can enter email ids of other users, who they want to invite to become booth responsible.
This commit is contained in:
Rahul 2019-06-03 19:50:48 +05:30
parent 12f10c7dcd
commit 58c829571e
4 changed files with 8 additions and 2 deletions

View file

@ -4,6 +4,8 @@ class Booth < ApplicationRecord
include ActiveRecord::Transitions
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
attr_accessor :invite_responsible
belongs_to :conference
has_many :booth_requests, dependent: :destroy
has_many :users, through: :booth_requests