Skip to content

Commit

Permalink
Fixes compatiblity with Rails 3.0 beta4.
Browse files Browse the repository at this point in the history
Apply_mapping was moved to ActiveSupport::Multibyte::Unicode.
Closes norman#68.
  • Loading branch information
nono authored and norman committed Jun 9, 2010
1 parent 7fd19b6 commit fffda9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/friendly_id/slug_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def clean!
# though your milage may vary with Greek and Turkic strings.
# @return String
def downcase!
@wrapped_string = apply_mapping :lowercase_mapping
@wrapped_string = ActiveSupport::Multibyte::Unicode.apply_mapping(@wrapped_string, :lowercase_mapping)
end

# Remove any non-word characters.
Expand Down Expand Up @@ -333,7 +333,7 @@ def truncate!(max)
# though your milage may vary with Greek and Turkic strings.
# @return String
def upcase!
@wrapped_string = apply_mapping :uppercase_mapping
@wrapped_string = ActiveSupport::Multibyte::Unicode.apply_mapping(@wrapped_string, :uppercase_mapping)
end

# Validate that the slug string is not blank or reserved, and truncate
Expand Down

0 comments on commit fffda9c

Please sign in to comment.