diff --git a/app/models/event.rb b/app/models/event.rb index ddadd77..2db7f8a 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -6,4 +6,6 @@ class Event < ActiveRecord::Base validates :abstract, presence: true validates :description, presence: true validates :agreement, acceptance: true + + scope :confirmed, -> { where.not confirmed_at: nil } end