diff options
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r-- | lib/mauve/person.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index 6ad6706..a82c539 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -32,16 +32,16 @@ module Mauve # # @return [Boolean] # - def notify_when_off_sick! - @notify_when_off_sick = true + def notify_when_off_sick=(arg) + @notify_when_off_sick = (arg ? true : false) end # Determines if a user should be notified if they're on their holdiays. # # @return [Boolean] # - def notify_when_on_holiday! - @notify_when_on_holiday = true + def notify_when_on_holiday=(arg) + @notify_when_on_holiday = (arg ? true : false) end # Sets the Proc to call for urgent notifications |