diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-22 12:13:26 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-04-22 12:13:26 -0500 |
commit | 148d909380cf9b85a51875a6790a6d69a2d0d693 (patch) | |
tree | 94164a2ff06c3e45fae16e91765de612a8f97e88 /activesupport/lib | |
parent | 85c2141fe3d7edb636a0b5e1d203f05c70db39dc (diff) | |
parent | 459f7bf38aa196cf4d2d970173b02d88e4a4e75c (diff) | |
download | rails-148d909380cf9b85a51875a6790a6d69a2d0d693.tar.gz rails-148d909380cf9b85a51875a6790a6d69a2d0d693.tar.bz2 rails-148d909380cf9b85a51875a6790a6d69a2d0d693.zip |
Merge pull request #14801 from kuldeepaggarwal/fix-string-inflection
Fix inconsistent behavior from String#pluralize
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/inflections.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb index 18273573e0..a943752f17 100644 --- a/activesupport/lib/active_support/core_ext/string/inflections.rb +++ b/activesupport/lib/active_support/core_ext/string/inflections.rb @@ -31,7 +31,7 @@ class String def pluralize(count = nil, locale = :en) locale = count if count.is_a?(Symbol) if count == 1 - self + self.dup else ActiveSupport::Inflector.pluralize(self, locale) end |