Implements Contacts
This commit is contained in:
parent
4955b2b7b8
commit
eb3e6898d2
9 changed files with 156 additions and 5 deletions
|
|
@ -27,6 +27,8 @@ class Conference < ActiveRecord::Base
|
|||
|
||||
has_and_belongs_to_many :questions
|
||||
|
||||
has_one :contact, dependent: :destroy
|
||||
|
||||
has_one :email_settings, dependent: :destroy
|
||||
has_one :call_for_papers, dependent: :destroy
|
||||
has_many :social_events, dependent: :destroy
|
||||
|
|
@ -523,6 +525,10 @@ class Conference < ActiveRecord::Base
|
|||
|
||||
private
|
||||
|
||||
after_create do
|
||||
self.create_contact
|
||||
end
|
||||
|
||||
##
|
||||
# Calculates the weeks from a start and a end week.
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue