Make open source

This commit is contained in:
John Lees-Miller
2018-10-27 16:46:26 +01:00
commit 6e82ba528b
163 changed files with 3912 additions and 0 deletions

21
app/admin/guests.rb Normal file
View File

@ -0,0 +1,21 @@
ActiveAdmin.register Guest do
permit_params :email, :first_name, :last_name, :attending, :diet, :songs,
:notes
scope :confirmed
scope :attending
scope :not_attending
form do |_f|
inputs 'Guest' do
input :email, as: :string
input :first_name
input :last_name
input :attending
input :diet, as: :text
input :songs, as: :text
input :notes, as: :text
end
actions
end
end