Add confirmed booths to splashpage

This commit is contained in:
nasia 2017-07-27 11:22:14 +03:00 committed by Stella Rouzi
parent 3f324d4e6f
commit 8b5ebb3dd7
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