Skip to content

Commit

Permalink
Use require_relative to avoid modifying $LOAD_PATH in gemspec (#3690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored Jun 17, 2024
1 parent a3eac8c commit 4e7bd09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rails_admin.gemspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rails_admin/version'
require_relative 'lib/rails_admin/version'

Gem::Specification.new do |spec|
# If you add a dependency, please maintain alphabetical order
Expand Down

0 comments on commit 4e7bd09

Please sign in to comment.