diff options
Diffstat (limited to 'activesupport/lib/active_support/reloader.rb')
-rw-r--r-- | activesupport/lib/active_support/reloader.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/activesupport/lib/active_support/reloader.rb b/activesupport/lib/active_support/reloader.rb index 121c621751..44062e3491 100644 --- a/activesupport/lib/active_support/reloader.rb +++ b/activesupport/lib/active_support/reloader.rb @@ -1,4 +1,6 @@ -require "active_support/execution_wrapper" +# frozen_string_literal: true + +require_relative "execution_wrapper" module ActiveSupport #-- @@ -69,11 +71,8 @@ module ActiveSupport end end - class_attribute :executor - class_attribute :check - - self.executor = Executor - self.check = lambda { false } + class_attribute :executor, default: Executor + class_attribute :check, default: lambda { false } def self.check! # :nodoc: @should_reload ||= check.call |