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
8 lines
170 B
Ruby
8 lines
170 B
Ruby
class Vposition < ActiveRecord::Base
|
|
belongs_to :conference
|
|
|
|
has_many :vchoices
|
|
has_many :vdays, through: :vchoices
|
|
|
|
validates :title, :vdays, presence: true
|
|
end
|