module FriendlyId::Mobility::FinderMethods
Public Instance Methods
exists_by_friendly_id?(id)
click to toggle source
# File lib/friendly_id/mobility.rb, line 66 def exists_by_friendly_id?(id) where(friendly_id_config.query_field => id).exists? || joins(:slugs).where(slug_history_clause(id)).exists? end