Make the Event model a Proposable

This commit is contained in:
Petko Bordjukov 2015-04-20 18:37:05 +03:00
parent 8508d64a92
commit 0948cd1b14
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
class Event < ActiveRecord::Base class Event < ActiveRecord::Base
include Proposable
validates :title, presence: true validates :title, presence: true
validates :length, presence: true, numericality: {only_integer: true, greater_than: 0} validates :length, presence: true, numericality: {only_integer: true, greater_than: 0}
validates :abstract, presence: true validates :abstract, presence: true