Module FriendlyId::Finders::Base
In: lib/friendly_id/finders.rb

Methods

Attributes

ids  [RW]  An array of ids; can be both friendly and unfriendly.
model_class  [RW]  The model class being used to perform the query.
options  [RW]  The ActiveRecord query options
scope  [RW]  The FriendlyId scope

Public Class methods

Is the id friendly or numeric? Not that the return value here is false if the id is definitely not friendly, and nil if it can not be determined. The return value will be:

  • true - if the id is definitely friendly (i.e., any string with non-numeric characters)
  • false - if the id is definitely unfriendly (i.e., an Integer, a model instance, etc.)
  • nil - if it can not be determined (i.e., a numeric string like "206".)

@return [true, false, nil] @see unfriendly?

Is the id numeric? @return [true, false, nil] true if definitely unfriendly, false if

  definitely friendly, else +nil+.

@see friendly?

Public Instance methods

Perform the find.

[Validate]