This commit is contained in:
nasia 2017-08-23 12:26:46 +03:00
parent 336c1e86bd
commit a0e1760ef1
8 changed files with 79 additions and 48 deletions

View file

@ -2,6 +2,8 @@ class Sponsor < ActiveRecord::Base
belongs_to :sponsorship_level
belongs_to :conference
attr_accessor :type, :quantity
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
mount_uploader :picture, PictureUploader, mount_on: :logo_file_name