aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector.rb
diff options
context:
space:
mode:
authorManfred Stienstra <manfred@fngtps.com>2008-09-21 17:51:01 +0200
committerManfred Stienstra <manfred@fngtps.com>2008-09-21 17:51:01 +0200
commit00a428655149c349d29b9351dbc345a3b8025a58 (patch)
tree89cbb711a21e632ee220a10be15674705a891b8a /activesupport/lib/active_support/inflector.rb
parent44e44b42d9226c089f00970ced796c83f193f262 (diff)
downloadrails-00a428655149c349d29b9351dbc345a3b8025a58.tar.gz
rails-00a428655149c349d29b9351dbc345a3b8025a58.tar.bz2
rails-00a428655149c349d29b9351dbc345a3b8025a58.zip
Change call to String#chars in inflector to String#mb_chars.
Diffstat (limited to 'activesupport/lib/active_support/inflector.rb')
-rw-r--r--activesupport/lib/active_support/inflector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb
index 8a917a9eb2..b2046f26de 100644
--- a/activesupport/lib/active_support/inflector.rb
+++ b/activesupport/lib/active_support/inflector.rb
@@ -257,7 +257,7 @@ module ActiveSupport
# <%= link_to(@person.name, person_path %>
# # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>
def parameterize(string, sep = '-')
- string.chars.normalize(:kd).to_s.gsub(/[^\x00-\x7F]+/, '').gsub(/[^a-z0-9_\-]+/i, sep).downcase
+ string.mb_chars.normalize(:kd).to_s.gsub(/[^\x00-\x7F]+/, '').gsub(/[^a-z0-9_\-]+/i, sep).downcase
end
# Create the name of a table like Rails does for models to table names. This method