Add confirmed booths to splashpage

This commit is contained in:
nasia 2017-07-27 11:22:14 +03:00
parent 7107f9a35f
commit f4b2115ed7
10 changed files with 51 additions and 1 deletions

View file

@ -25,6 +25,8 @@ class Booth < ActiveRecord::Base
:submitter_relationship,
presence: true
scope :confirmed, -> { where(state: 'confirmed') }
mount_uploader :picture, PictureUploader, mount_on: :logo_link
state_machine initial: :new do