Skip to content

Commit

Permalink
Fixed stack level too deep on strip_diacritics. Resolves issue #43.
Browse files Browse the repository at this point in the history
  • Loading branch information
norman committed Feb 9, 2010
1 parent 1d55e27 commit b3accb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/friendly_id/configuration.rb
Expand Up @@ -114,7 +114,7 @@ def reserved=(*args)
# @deprecated Please use {#approximate_ascii approximate_ascii}.
def strip_diacritics=(*args)
warn('strip_diacritics is deprecated and will be removed from 3.0. Please use #approximate_ascii')
self.strip_diacritics = *args
self.approximate_ascii = *args
end

%w[approximate_ascii normalizer scope strip_non_ascii use_slug].each do |method|
Expand All @@ -129,4 +129,4 @@ def #{method}?

end

end
end

0 comments on commit b3accb7

Please sign in to comment.