# coding: utf-8
require "active_model"
require "active_support/i18n"
require "detox/validations/ordering"
require "detox/validations/possession"
require "detox/validations/values_uniqueness"
require "detox/validations/all"
require "detox/validations/any"

ActiveModel::Validations.__send__(:include, Detox::Validations)
Dir[Pathname.new(File.dirname(__FILE__)).join("detox", "locales", "*.yml")].each do |f|
  I18n.load_path << f
end


# coding: utf-8
require "active_model"
require "active_support/i18n"
require "detox/validations/ordering"
require "detox/validations/possession"
require "detox/validations/values_uniqueness"
require "detox/validations/all"
require "detox/validations/any"

ActiveModel::Validations.__send__(:include, Detox::Validations)
I18n.load_path << Dir[Pathname.new(File.dirname(__FILE__)).join("detox", "locales", "*.yml")]


--- 
+++ 
@@ -8,5 +8,7 @@
 require "detox/validations/any"
 
 ActiveModel::Validations.__send__(:include, Detox::Validations)
-I18n.load_path << Dir[Pathname.new(File.dirname(__FILE__)).join("detox", "locales", "*.yml")]
+Dir[Pathname.new(File.dirname(__FILE__)).join("detox", "locales", "*.yml")].each do |f|
+  I18n.load_path << f
+end
 
Fix error on using in Rails
