Gestionnaire can invite an email contact to participate at a dossier
This commit is contained in:
parent
d7dbd28507
commit
e2a896d0b0
33 changed files with 409 additions and 39 deletions
10
app/models/invite.rb
Normal file
10
app/models/invite.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class Invite < ActiveRecord::Base
|
||||
|
||||
belongs_to :dossier
|
||||
belongs_to :user
|
||||
|
||||
validates_presence_of :email
|
||||
validates_uniqueness_of :email, :scope => :dossier_id
|
||||
|
||||
validates :email, email_format: true
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue