Moves sponsor email attribute from conference to contact
This commit is contained in:
parent
c0cdf3e6e5
commit
9376fe57e3
10 changed files with 49 additions and 11 deletions
|
|
@ -15,7 +15,7 @@ class Conference < ActiveRecord::Base
|
|||
:use_difficulty_levels, :use_vpositions, :use_vdays, :vdays_attributes,
|
||||
:vpositions_attributes, :use_volunteers, :color,
|
||||
:sponsorship_levels_attributes, :sponsors_attributes,
|
||||
:sponsor_email, :photos_attributes, :targets, :targets_attributes,
|
||||
:photos_attributes, :targets, :targets_attributes,
|
||||
:campaigns, :campaigns_attributes
|
||||
|
||||
has_paper_trail
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
class Contact < ActiveRecord::Base
|
||||
attr_accessible :conference_id, :social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :public
|
||||
attr_accessible :conference_id, :social_tag, :email, :facebook, :googleplus, :twitter,
|
||||
:instagram, :public, :sponsor_email
|
||||
|
||||
belongs_to :conference
|
||||
|
||||
validates :conference, presence: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue