This commit is contained in:
nasia 2017-08-25 00:43:28 +03:00
parent 4843021971
commit 93f7e07ebe
6 changed files with 56 additions and 15 deletions

View file

@ -2,7 +2,8 @@ class Sponsor < ActiveRecord::Base
belongs_to :sponsorship_level
belongs_to :conference
attr_accessor :type, :quantity
serialize :swag_hash, Hash
attr_accessor :type, :quantity, :swag_index
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }