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 a54bd5e commit 988fde1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/route_translator.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# frozen_string_literal: true

# require external dependencies
require 'addressable/uri'

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 RouteTranslator

class BaseError < StandardError; end
class TranslatorNotFound < BaseError; end

require 'route_translator/railtie' if defined?(::Rails::Railtie)
require_relative 'route_translator/railtie' if defined?(::Rails::Railtie)

@translators = {}

Expand Down

0 comments on commit 988fde1

Please sign in to comment.