aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/.gitignore
diff options
context:
space:
mode:
authorJames Le Cuirot <james.le-cuirot@yakara.com>2014-10-03 22:45:40 +0100
committerJames Le Cuirot <chewi@aura-online.co.uk>2014-10-03 22:45:40 +0100
commit6a8464fa4f50a0fce3ce245f717b813712ea27a8 (patch)
tree2a68543951d7785aba163a6a728b5321e4c2c178 /activerecord/test/.gitignore
parent1609ec9879d0011f31f0ae90cf3b2bc8b1833390 (diff)
downloadrails-6a8464fa4f50a0fce3ce245f717b813712ea27a8.tar.gz
rails-6a8464fa4f50a0fce3ce245f717b813712ea27a8.tar.bz2
rails-6a8464fa4f50a0fce3ce245f717b813712ea27a8.zip
Fix underscore inflector handling of adjacent acronyms
I suspect that positive lookbehind would have been used in the original implementation had it been available in supported Ruby versions at the time. Now that Rails requires Ruby 1.9.2 or above, this is no longer an issue. This fixes #14146 for acronyms such as APIRESTful. This technique also addresses namespaced acronyms that are not entirely uppercased. This was broken when the commit was originally written but has since been fixed in ccbb481. The latter does not deal with adjacent acronyms so this commit wins.
Diffstat (limited to 'activerecord/test/.gitignore')
0 files changed, 0 insertions, 0 deletions