Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 30, 2024
1 parent e9ad727 commit e71ac59
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/action_form.rb
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit e71ac59

Please sign in to comment.