Make the Event model a Proposable
This commit is contained in:
parent
8508d64a92
commit
0948cd1b14
|
@ -1,4 +1,6 @@
|
|||
class Event < ActiveRecord::Base
|
||||
include Proposable
|
||||
|
||||
validates :title, presence: true
|
||||
validates :length, presence: true, numericality: {only_integer: true, greater_than: 0}
|
||||
validates :abstract, presence: true
|
||||
|
|
Loading…
Reference in New Issue