2015-09-02 00:07:50 +03:00
|
|
|
class Volunteership < ActiveRecord::Base
|
|
|
|
include Proposable
|
|
|
|
|
|
|
|
belongs_to :volunteer_team
|
2019-04-28 21:10:54 +03:00
|
|
|
belongs_to :volunteer, class_name: "User"
|
2015-09-02 00:07:50 +03:00
|
|
|
has_one :conference, through: :volunteer_team
|
|
|
|
|
|
|
|
def proposable_title
|
|
|
|
volunteer.email
|
|
|
|
end
|
|
|
|
|
|
|
|
def proposable_description
|
|
|
|
{
|
|
|
|
volunteer_email: volunteer.email,
|
|
|
|
volunteer_team: volunteer_team.name,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|