Skip to content

Commit

Permalink
use __dir__ expansion instead of __FILE__
Browse files Browse the repository at this point in the history
  • Loading branch information
glaszig committed May 28, 2024
1 parent 2e596bc commit 9e19ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ice_cube/i18n.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "ice_cube/null_i18n"

module IceCube
LOCALES_PATH = File.expand_path(File.join("..", "..", "..", "config", "locales"), __FILE__)
LOCALES_PATH = File.expand_path(File.join("..", "..", "config", "locales"), __dir__)

I18n = begin
require "i18n"
Expand Down

0 comments on commit 9e19ce2

Please sign in to comment.