aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/mapper.rb
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2011-01-27 12:25:22 -0500
committerMatt Jankowski <mjankowski@thoughtbot.com>2011-01-27 12:25:22 -0500
commitcc9301f459739e3eb3674b1b2e15057e35d25630 (patch)
tree2827bb1f5de93f9cf956b82af9d54d782cdc1469 /actionpack/lib/action_dispatch/routing/mapper.rb
parentd8919d3151f4379853df102a630d5db468bf3430 (diff)
downloadrails-cc9301f459739e3eb3674b1b2e15057e35d25630.tar.gz
rails-cc9301f459739e3eb3674b1b2e15057e35d25630.tar.bz2
rails-cc9301f459739e3eb3674b1b2e15057e35d25630.zip
clarify what the "they" that are is and what the "are" in question is
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index f65a294eca..6658af15b0 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -827,7 +827,8 @@ module ActionDispatch
alias :member_name :singular
- # Checks for uncountable plurals, and appends "_index" if they're.
+ # Checks for uncountable plurals, and appends "_index" if the plural
+ # and singular form are the same.
def collection_name
singular == plural ? "#{plural}_index" : plural
end