From e71ac59ad91d86ba2fed1bdcc87cdce0a226dfa2 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Mon, 30 Sep 2024 02:02:24 +0200 Subject: [PATCH] Coding style --- lib/action_form.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/action_form.rb b/lib/action_form.rb index b7a0181..f4778cd 100644 --- a/lib/action_form.rb +++ b/lib/action_form.rb @@ -1,11 +1,15 @@ # frozen_string_literal: true +# require external dependencies require 'zeitwerk' -loader = Zeitwerk::Loader.for_gem -loader.setup + +# load zeitwerk +Zeitwerk::Loader.for_gem.tap do |loader| # rubocop:disable Style/SymbolProc + loader.setup +end module ActionForm - require 'action_form/engine' if defined?(Rails) + require_relative 'action_form/engine' def self.rails_buggy? Rails.gem_version >= Gem::Version.new('7.0.3')