summaryrefslogtreecommitdiffstats
path: root/lib/band.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-31 14:16:31 +0100
committerHarald Eilertsen <haraldei@anduin.net>2015-10-31 14:16:31 +0100
commit37793a271f5ac06fad505ab27ad19d7f3f77be7f (patch)
tree642888aa2cbedc502e51a5f722d044c2a909c14a /lib/band.rb
parentaacafd1a448c8a0e89ab66cbde5daa4c33822304 (diff)
downloadnorsk-urskog-registrations-37793a271f5ac06fad505ab27ad19d7f3f77be7f.tar.gz
norsk-urskog-registrations-37793a271f5ac06fad505ab27ad19d7f3f77be7f.tar.bz2
norsk-urskog-registrations-37793a271f5ac06fad505ab27ad19d7f3f77be7f.zip
Make PDF rendering a bit nicer, and update member listing.
Diffstat (limited to 'lib/band.rb')
-rw-r--r--lib/band.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/band.rb b/lib/band.rb
index 54775f4..a951059 100644
--- a/lib/band.rb
+++ b/lib/band.rb
@@ -50,4 +50,8 @@ class Band
def has_errors
errors.length > 0
end
+
+ def name_and_city
+ city.empty? ? name : name + " (" + city + ")"
+ end
end