Skip to content

Commit

Permalink
proper requires
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Mar 11, 2022
1 parent ec6903a commit 82c3577
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/lokalise_rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
require 'zeitwerk'
require 'lokalise_manager'

require 'lokalise_rails/utils'
require 'lokalise_rails/global_config'

loader = Zeitwerk::Loader.for_gem
loader.ignore "#{__dir__}/lokalise_rails/railtie.rb"
loader.setup

# Main LokaliseRails module
module LokaliseRails
end

require 'lokalise_rails/railtie' if defined?(Rails)
require_relative 'lokalise_rails/railtie' if defined?(Rails)

0 comments on commit 82c3577

Please sign in to comment.