Introduce a confirmed scope for Event

This commit is contained in:
Petko Bordjukov 2015-04-20 18:37:14 +03:00
parent 0948cd1b14
commit 819e07338b

View File

@ -6,4 +6,6 @@ class Event < ActiveRecord::Base
validates :abstract, presence: true validates :abstract, presence: true
validates :description, presence: true validates :description, presence: true
validates :agreement, acceptance: true validates :agreement, acceptance: true
scope :confirmed, -> { where.not confirmed_at: nil }
end end