lib/active_validation.rb in active_validation-2.0.0 vs lib/active_validation.rb in active_validation-2.0.1

- old
+ new

@@ -66,24 +66,19 @@ module ActiveValidation class Railtie < ::Rails::Railtie initializer 'active_validation' do |app| ActiveValidation::Railtie.instance_eval do - locales_from(app.config.i18n.available_locales).each do |locale| + [app.config.i18n.available_locales].each do |locale| (I18n.load_path << path(locale)) if File.file?(path(locale)) end end end protected def self.path(locale) File.expand_path("../../config/locales/#{locale}.yml", __FILE__) - end - - def self.locales_from(args) - array = Array(args || []) - array.blank? ? '*' : array end end end end \ No newline at end of file