module FriendlyId::ActiveRecord2::SimpleModel::DeprecatedMethods
These methods will be removed in FriendlyId 3.0.
Public Instance Methods
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/simple_model.rb, line 87 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/simple_model.rb, line 94 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
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/simple_model.rb, line 101 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