Only confirmed events in JSON API
This commit is contained in:
parent
08637503e5
commit
7f3c8a65de
2 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,8 @@ class Event < ActiveRecord::Base
|
|||
validates :title, :presence => true
|
||||
validates :abstract, :presence => true
|
||||
|
||||
scope :confirmed, where(:state => "confirmed")
|
||||
|
||||
state_machine :initial => :new do
|
||||
state :new
|
||||
state :review
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue