Skip to content

Commit 4e7bd09

Browse files
authored
Use require_relative to avoid modifying $LOAD_PATH in gemspec (#3690)
1 parent a3eac8c commit 4e7bd09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rails_admin.gemspec

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# frozen_string_literal: true
22

3-
lib = File.expand_path('lib', __dir__)
4-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5-
require 'rails_admin/version'
3+
require_relative 'lib/rails_admin/version'
64

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

0 commit comments

Comments
 (0)