aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/holiday.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/holiday.rb')
-rw-r--r--app/models/holiday.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/holiday.rb b/app/models/holiday.rb
index 4c4941589..34044683a 100644
--- a/app/models/holiday.rb
+++ b/app/models/holiday.rb
@@ -22,6 +22,8 @@
class Holiday < ActiveRecord::Base
+ validates_presence_of :day
+
def self.holidays
@@holidays ||= all.collect { |h| h.day }.to_set
end