aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorHenrik N <henrik@nyh.se>2009-03-12 07:29:57 +0100
committerHenrik N <henrik@nyh.se>2009-03-12 07:29:57 +0100
commit724eb9e6121b36e61f373ba4bdcce29f3d0c78da (patch)
tree55f57fc745291a5483f0e037603902be31495ae7 /activesupport
parentaaacc999fd88ce1936ddd5452bb70c09af166967 (diff)
downloadrails-724eb9e6121b36e61f373ba4bdcce29f3d0c78da.tar.gz
rails-724eb9e6121b36e61f373ba4bdcce29f3d0c78da.tar.bz2
rails-724eb9e6121b36e61f373ba4bdcce29f3d0c78da.zip
Fix some typos, including a global "seperator" -> "separator".
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/inflector.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb
index 5ff6f50fb3..2e2a63c3e7 100644
--- a/activesupport/lib/active_support/inflector.rb
+++ b/activesupport/lib/active_support/inflector.rb
@@ -258,9 +258,9 @@ module ActiveSupport
# # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>
def parameterize(string, sep = '-')
re_sep = Regexp.escape(sep)
- # replace accented chars with ther ascii equivalents
+ # Replace accented chars with their ASCII equivalents.
parameterized_string = transliterate(string)
- # Turn unwanted chars into the seperator
+ # Turn unwanted chars into the separator.
parameterized_string.gsub!(/[^a-z0-9\-_\+]+/i, sep)
# No more than one of the separator in a row.
parameterized_string.squeeze!(sep)
@@ -270,7 +270,7 @@ module ActiveSupport
end
- # Replaces accented characters with their ascii equivalents.
+ # Replaces accented characters with their ASCII equivalents.
def transliterate(string)
Iconv.iconv('ascii//ignore//translit', 'utf-8', string).to_s
end