diff options
Diffstat (limited to 'app/models/occurrence.rb')
| -rw-r--r-- | app/models/occurrence.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/occurrence.rb b/app/models/occurrence.rb index 143124f..777be24 100644 --- a/app/models/occurrence.rb +++ b/app/models/occurrence.rb | |||
| @@ -35,7 +35,7 @@ class Occurrence < ApplicationRecord | |||
| 35 | self.create( | 35 | self.create( |
| 36 | :start_time => occurrence, | 36 | :start_time => occurrence, |
| 37 | :end_time => (occurrence + duration), | 37 | :end_time => (occurrence + duration), |
| 38 | :node_id => node.id, | 38 | :node_id => node&.id, |
| 39 | :event_id => event.id | 39 | :event_id => event.id |
| 40 | ) | 40 | ) |
| 41 | end | 41 | end |
