mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Cop checks for the use of old-style attribute validation. Supports autocorrection which was run to fix the files concerned Closes #1414
10 lines
318 B
Ruby
10 lines
318 B
Ruby
class Sponsor < ActiveRecord::Base
|
|
belongs_to :sponsorship_level
|
|
belongs_to :conference
|
|
|
|
has_paper_trail ignore: [:updated_at], meta: { conference_id: :conference_id }
|
|
|
|
mount_uploader :picture, PictureUploader, mount_on: :logo_file_name
|
|
|
|
validates :name, :website_url, :sponsorship_level, presence: true
|
|
end
|