diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-26 18:14:47 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-06-26 18:14:47 -0300 |
commit | d04763f43c905375d20213b020d258bab959bd51 (patch) | |
tree | df4ee737f902704f1fc0498a56d46b1c0b4f7963 /activesupport/lib/active_support | |
parent | 600aaf4234c80064201ee34ddabed216b91559db (diff) | |
parent | 643409dcb04e7ac6a6c7b09edfb9606563e9aa21 (diff) | |
download | rails-d04763f43c905375d20213b020d258bab959bd51.tar.gz rails-d04763f43c905375d20213b020d258bab959bd51.tar.bz2 rails-d04763f43c905375d20213b020d258bab959bd51.zip |
Merge pull request #14247 from robin850/inflections-with-uncountables
Make the apply_inflections method case-sensitive
Diffstat (limited to 'activesupport/lib/active_support')
-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 eda0edff28..97401ccec7 100644 --- a/activesupport/lib/active_support/inflector/inflections.rb +++ b/activesupport/lib/active_support/inflector/inflections.rb @@ -160,7 +160,7 @@ module ActiveSupport # uncountable 'money', 'information' # uncountable %w( money information rice ) def uncountable(*words) - (@uncountables << words).flatten! + @uncountables += words.flatten.map(&:downcase) end # Specifies a humanized form of a string by a regular expression rule or |