summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-30 14:22:26 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-30 14:22:26 +0100
commit90f4ed34c62f5d90b536cac97265d323d0c1c136 (patch)
treeb9c6f3c9494d21804b1cdab73daf5b57286a3ff7 /lib
parentf67121a270a345f718dd8e146b13a0fe84da1885 (diff)
downloadnorsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.tar.gz
norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.tar.bz2
norsk-urskog-registrations-90f4ed34c62f5d90b536cac97265d323d0c1c136.zip
Simplify form: Just use a textarea for members.
Diffstat (limited to 'lib')
-rw-r--r--lib/band.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/band.rb b/lib/band.rb
index 8cd3535..54775f4 100644
--- a/lib/band.rb
+++ b/lib/band.rb
@@ -9,7 +9,7 @@ class Band
def initialize(params = nil)
@errors = []
@contact = Contact.new
- @members = []
+ @members = ""
@songs = []
if params
@@ -18,15 +18,10 @@ class Band
@website = params['website']
@label = params['label']
@short_bio = params['shortbio']
+ @members = params['members'] || ""
@contact = Contact.new(params['contact'])
- if params['members']
- params['members'].each do |k, m|
- @members << Member.new(m)
- end
- end
-
if params['songs']
params['songs'].each do |k, s|
@songs << Song.new(s)