mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
8 lines
336 B
Ruby
8 lines
336 B
Ruby
class Contact < ActiveRecord::Base
|
|
attr_accessible :conference, :social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public
|
|
belongs_to :conference
|
|
|
|
validates :conference, presence: true
|
|
# Conferences only have one contact
|
|
validates :conference_id, :uniqueness => {:message => "has already contact details"}
|
|
end
|