diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-06-08 10:31:25 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-06-08 10:31:25 +0100 |
commit | 4f6ff88393027210d8710bee1d2b1b329a426922 (patch) | |
tree | 85e53e573aea33b55b79fc08aea6dfdbafa4a401 /lib/mauve/person.rb | |
parent | d67ea28693088e4d7039069b52541777eb7aa989 (diff) |
Fixed notify_when_on_holiday/off_sick flags in configuration + added tests.
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 |