Scope event operations to the current conference #16

Merged
ignisf merged 2 commits from scoped-events into 2.0 2015-07-19 15:02:16 +03:00
Showing only changes of commit d381b800c4 - Show all commits

View File

@ -1,6 +1,9 @@
class Event < ActiveRecord::Base
include Proposable
has_one :track, through: :proposition, source: :proposition_accepting, source_type: Track
has_one :conference, through: :track
validates :title, presence: true
validates :length, presence: true, numericality: {only_integer: true, greater_than: 0}
validates :abstract, presence: true