From 22a947657b34698bc6c65a0a0dd7e4ae30ecc6fa Mon Sep 17 00:00:00 2001 From: Benjamin Curtis Date: Thu, 14 Apr 2011 16:31:06 -0700 Subject: [PATCH] Reload I18n after adding to the load path to fix #5 --- lib/faker.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/faker.rb b/lib/faker.rb index 1ee19a67f8..d4cac30a58 100644 --- a/lib/faker.rb +++ b/lib/faker.rb @@ -8,6 +8,7 @@ require 'i18n' I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) I18n.load_path += Dir[File.join(mydir, 'locales', '*.yml')] +I18n.reload! module Faker