osem-fcy/app/models/sponsorship_level.rb
Emanuel Hayford e5587d42a2 Enable Rails/Validation Rubocop cop
Cop checks for the use of old-style attribute validation. Supports autocorrection which was run
to fix the files concerned

Closes #1414
2017-03-28 21:47:31 +02:00

8 lines
245 B
Ruby

class SponsorshipLevel < ActiveRecord::Base
validates :title, presence: true
belongs_to :conference
acts_as_list scope: :conference
has_many :sponsors
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
end