Sha256: f0a52ebacd71bab69029af46cd04233003f9583cd097e29d76f4910fad97c5aa
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
if defined?(Rails) class ActiveValidation::Railtie < ::Rails::Railtie initializer 'active_validation' do |app| ActiveValidation::Railtie.instance_eval do [app.config.i18n.available_locales].flatten.each do |locale| (I18n.load_path << path(locale)) if File.file?(path(locale)) end end end def self.path(locale) File.expand_path("../../config/locales/#{locale}.yml", __FILE__) end private_class_method :path end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_validation-4.0.1 | lib/active_validation/railtie.rb |