module FriendlyId::ActiveRecord2::SluggedModel::DeprecatedMethods

These methods will be removed in FriendlyId 3.0.

Public Instance Methods

best_id() click to toggle source

@deprecated Please use to_param

# File lib/friendly_id/active_record2/slugged_model.rb, line 169
def best_id
  warn("best_id is deprecated and will be removed in 3.0. Please use #to_param.")
  to_param
end
finder_slug() click to toggle source

@deprecated Please use friendly_id_status.slug.

# File lib/friendly_id/active_record2/slugged_model.rb, line 175
def finder_slug
  warn("finder_slug is deprecated and will be removed in 3.0. Please use #friendly_id_status.slug.")
  friendly_id_status.slug
end
found_using_friendly_id?() click to toggle source

Was the record found using one of its friendly ids? @deprecated Please use friendly_id_status.friendly?

# File lib/friendly_id/active_record2/slugged_model.rb, line 182
def found_using_friendly_id?
  warn("found_using_friendly_id? is deprecated and will be removed in 3.0. Please use #friendly_id_status.friendly?")
  friendly_id_status.friendly?
end
found_using_numeric_id?() click to toggle source

Was the record found using its numeric id? @deprecated Please use friendly_id_status.numeric?

# File lib/friendly_id/active_record2/slugged_model.rb, line 189
def found_using_numeric_id?
  warn("found_using_numeric_id is deprecated and will be removed in 3.0. Please use #friendly_id_status.numeric?")
  friendly_id_status.numeric?
end
found_using_outdated_friendly_id?() click to toggle source

Was the record found using an old friendly id? @deprecated Please use friendly_id_status.outdated?

# File lib/friendly_id/active_record2/slugged_model.rb, line 196
def found_using_outdated_friendly_id?
  warn("found_using_outdated_friendly_id is deprecated and will be removed in 3.0. Please use #friendly_id_status.outdated?")
  friendly_id_status.outdated?
end
has_a_slug?() click to toggle source

@deprecated Please use slug?

# File lib/friendly_id/active_record2/slugged_model.rb, line 209
def has_a_slug?
  warn("has_a_slug? is deprecated and will be removed in 3.0. Please use #slug?")
  slug?
end
has_better_id?() click to toggle source

Was the record found using an old friendly id, or its numeric id? @deprecated Please use !#friendly_id_status.best?

# File lib/friendly_id/active_record2/slugged_model.rb, line 203
def has_better_id?
  warn("has_better_id? is deprecated and will be removed in 3.0. Please use !#friendly_id_status.best?")
  ! friendly_id_status.best?
end