Skip to content
This repository
Browse code

Skip if it is actually a pluralize scheme.

  • Loading branch information...
commit 0f128b1f67f5cdaf01d4dd3a723341e85689af27 1 parent 14cfc45
José Valim authored June 27, 2011
2  activerecord/lib/active_record/railtie.rb
@@ -112,7 +112,7 @@ class Railtie < Rails::Railtie
112 112
       lookup = I18n.t(container, :default => {})
113 113
       if lookup.is_a?(Hash)
114 114
         lookup.each do |key, value|
115  
-          if value.is_a?(Hash)
  115
+          if value.is_a?(Hash) && !value.key?(:one)
116 116
             $stderr.puts "[DEPRECATION WARNING] Nested I18n namespace lookup under \"#{container}.#{key}\" is no longer supported"
117 117
           end
118 118
         end

0 notes on commit 0f128b1

Please sign in to comment.
Something went wrong with that request. Please try again.