lib/ddr/ingesttools.rb in ddr-ingesttools-0.2.0 vs lib/ddr/ingesttools.rb in ddr-ingesttools-0.2.1
- old
+ new
@@ -5,9 +5,9 @@
require 'i18n'
module Ddr
module IngestTools
- I18n.load_path = Dir['config/locales/*.yml']
+ I18n.load_path = Dir[File.join(Gem.loaded_specs['ddr-ingesttools'].gem_dir, 'config', 'locales', '*.yml')]
end
end