From 4ee582e51e5b482693f48c1ff15fed2db8e0820d Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 2 Jun 2024 16:04:55 +0200 Subject: [PATCH] Simplify preloader initializer Call `super` without checking for options presence --- lib/chrono_model/patches/preloader.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/chrono_model/patches/preloader.rb b/lib/chrono_model/patches/preloader.rb index b5b36b5..c265aee 100644 --- a/lib/chrono_model/patches/preloader.rb +++ b/lib/chrono_model/patches/preloader.rb @@ -16,11 +16,7 @@ def initialize(**options) @chronomodel_options = options.extract!(:as_of_time, :model) options[:scope] = chronomodel_scope(options[:scope]) if options.key?(:scope) - if options.empty? - super() - else - super - end + super end private