lib/protector.rb in protector-0.2.2 vs lib/protector.rb in protector-0.2.3
- old
+ new
@@ -4,9 +4,9 @@
require "protector/version"
require "protector/dsl"
require "protector/adapters/active_record"
require "protector/adapters/sequel"
-I18n.load_path << Dir[File.join File.expand_path(File.dirname(__FILE__)), '..', 'locales', '*.yml']
+I18n.load_path += Dir[File.expand_path File.join('..', 'locales', '*.yml'), File.dirname(__FILE__)]
Protector::Adapters::ActiveRecord.activate! if defined?(ActiveRecord)
Protector::Adapters::Sequel.activate! if defined?(Sequel)
\ No newline at end of file