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 c3f6af9 commit 646aa7c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/acts_as_xlsx.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# frozen_string_literal: true

# require external dependencies
require 'axlsx'

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 ActsAsXlsx
require 'acts_as_xlsx/engine' if defined?(Rails)
require_relative 'acts_as_xlsx/engine' if defined?(Rails)
end

0 comments on commit 646aa7c

Please sign in to comment.