diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-10 14:52:35 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-10 14:53:12 +0200 |
commit | 2b664060f45efd7329b53f87f83cc764a5a53bdb (patch) | |
tree | c853ff7ab7e62836e4c505856a5d60880fbe218a /lib | |
parent | e95f4cf46ed0047083fb3825de02416ab7340feb (diff) | |
download | norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.tar.gz norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.tar.bz2 norsk-urskog-registrations-2b664060f45efd7329b53f87f83cc764a5a53bdb.zip |
Don't display error message when there's no errors.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/band.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/band.rb b/lib/band.rb index 760274b..e75dd6e 100644 --- a/lib/band.rb +++ b/lib/band.rb @@ -45,4 +45,8 @@ class Band errors << "Du må ha med minst én låt!" end end + + def has_errors + errors.length > 0 + end end |