diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-28 00:19:13 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-28 00:19:13 -0700 |
commit | 5297049e32c3b176893e7ef029d9fa22f2003409 (patch) | |
tree | 725c6dbe37e711472e8dab2468818b5235211cf5 /activesupport/lib | |
parent | ad62f1928768bd2676958a4a08512bad342fe469 (diff) | |
parent | ba9891f13da80bf5991c50ce53ab9db3fe852600 (diff) | |
download | rails-5297049e32c3b176893e7ef029d9fa22f2003409.tar.gz rails-5297049e32c3b176893e7ef029d9fa22f2003409.tar.bz2 rails-5297049e32c3b176893e7ef029d9fa22f2003409.zip |
Merged pull request #328 from MSNexploder/fix_clear_inflector.
proper reset all inflector scopes
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/inflector/inflections.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector/inflections.rb b/activesupport/lib/active_support/inflector/inflections.rb index e136e4c5b3..d5d55b7207 100644 --- a/activesupport/lib/active_support/inflector/inflections.rb +++ b/activesupport/lib/active_support/inflector/inflections.rb @@ -96,7 +96,7 @@ module ActiveSupport def clear(scope = :all) case scope when :all - @plurals, @singulars, @uncountables = [], [], [] + @plurals, @singulars, @uncountables, @humans = [], [], [], [] else instance_variable_set "@#{scope}", [] end |