Introduce a confirmed scope for Event
This commit is contained in:
parent
0948cd1b14
commit
819e07338b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user