module FriendlyId::ActiveRecord2::DeprecatedSlugMethods
Public Instance Methods
normalize(slug_text)
click to toggle source
@deprecated Please use SlugString#normalize.
# File lib/friendly_id/active_record2/slug.rb, line 12 def normalize(slug_text) warn("Slug#normalize is deprecated and will be removed in FriendlyId 3.0. Please use SlugString#normalize.") raise BlankError if slug_text.blank? SlugString.new(slug_text.to_s).normalize.to_s end
parse(string)
click to toggle source
@deprecated Please use String#parse_friendly_id
# File lib/friendly_id/active_record2/slug.rb, line 6 def parse(string) warn("Slug#parse is deprecated and will be removed in FriendlyId 3.0. Please use String#parse_friendly_id.") string.to_s.parse_friendly_id end
strip_diacritics(string)
click to toggle source
@deprecated Please use SlugString#approximate_ascii.“
# File lib/friendly_id/active_record2/slug.rb, line 19 def strip_diacritics(string) warn("Slug#strip_diacritics is deprecated and will be removed in FriendlyId 3.0. Please use SlugString#approximate_ascii.") raise BlankError if string.blank? SlugString.new(string).approximate_ascii end
strip_non_ascii(string)
click to toggle source
@deprecated Please use SlugString#to_ascii.
# File lib/friendly_id/active_record2/slug.rb, line 26 def strip_non_ascii(string) warn("Slug#strip_non_ascii is deprecated and will be removed in FriendlyId 3.0. Please use SlugString#to_ascii.") raise BlankError if string.blank? SlugString.new(string).to_ascii end