diff options
-rw-r--r-- | lib/band.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/band.rb b/lib/band.rb index efccc5f..9b949c7 100644 --- a/lib/band.rb +++ b/lib/band.rb @@ -36,6 +36,8 @@ class Band end def validate! + @errors = [] + if @name.nil? || @name.strip.empty? errors << "Bandnavn mangler" end |