lib/flapjack/data/notification_rule.rb in flapjack-1.2.0 vs lib/flapjack/data/notification_rule.rb in flapjack-1.2.1rc1

- old
+ new

@@ -251,9 +251,14 @@ tr = symbolize(time_restriction) return unless (tr.has_key?(:start_time) || tr.has_key?(:start_date)) && (tr.has_key?(:end_time) || tr.has_key?(:end_date)) + # exrules is deprecated in latest ice_cube, but may be stored in data + # serialised from earlier versions of the gem + # ( https://github.com/flapjack/flapjack/issues/715 ) + tr.delete(:exrules) + parsed_time = proc {|tr, field| if t = tr.delete(field) t = t.dup t = t[:time] if t.is_a?(Hash)