Permalink
Browse files

Skip if it is actually a pluralize scheme.

  • Loading branch information...
1 parent 14cfc45 commit 0f128b1f67f5cdaf01d4dd3a723341e85689af27 @josevalim josevalim committed Jun 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/railtie.rb
@@ -112,7 +112,7 @@ class Railtie < Rails::Railtie
lookup = I18n.t(container, :default => {})
if lookup.is_a?(Hash)
lookup.each do |key, value|
- if value.is_a?(Hash)
+ if value.is_a?(Hash) && !value.key?(:one)
$stderr.puts "[DEPRECATION WARNING] Nested I18n namespace lookup under \"#{container}.#{key}\" is no longer supported"
end
end

0 comments on commit 0f128b1

Please sign in to comment.