Module: FriendlyId::History::FinderMethods

Includes:
FinderMethods
Defined in:
lib/friendly_id/history.rb

Instance Method Summary collapse

Methods included from FinderMethods

#exists?, #find, #find_by_friendly_id

Instance Method Details

#exists_by_friendly_id?(id) ⇒ Boolean

Returns:

  • (Boolean)


87
88
89
# File 'lib/friendly_id/history.rb', line 87

def exists_by_friendly_id?(id)
  super || joins(:slugs).where(slug_history_clause(parse_friendly_id(id))).exists?
end