From fc66d509cbc0a42882e6cb84e7f9390a9c8c85e8 Mon Sep 17 00:00:00 2001 From: Sebastian Deutsch Date: Sun, 25 Sep 2016 16:02:29 +0200 Subject: [PATCH] Replaced "||" with "||=" I think a ||= is missing here - correct me if I'm wrong. --- lib/schedulable/acts_as_schedulable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/schedulable/acts_as_schedulable.rb b/lib/schedulable/acts_as_schedulable.rb index 504990a..9bf0bef 100644 --- a/lib/schedulable/acts_as_schedulable.rb +++ b/lib/schedulable/acts_as_schedulable.rb @@ -29,7 +29,7 @@ def acts_as_schedulable(name, options = {}) end options[:occurrences][:class_name] = occurrences_association.to_s.classify options[:occurrences][:as]||= :schedulable - options[:occurrences][:dependent]||:destroy + options[:occurrences][:dependent]||= :destroy options[:occurrences][:autosave]||= true has_many occurrences_association, options[:occurrences]