lib/friendly_id/candidates.rb
# Visits each candidate, calls it, passes it to `normalize_friendly_id` and
# yields the wanted slug candidates.
Visits each candidate, calls it, passes it to `normalize_friendly_id` and
yields the wanted slug candidates.
Visits each candidate calls it passes it to ` normalize_friendly_id ` and yields the wanted slug candidates .
def each(*args, &block)
      @candidates.map do |candidate|
        slug = @object.normalize_friendly_id(candidate.map(&:call).join(' '))
        yield slug if wanted?(slug)
      end
    end
def each ( * args , & block ) @candidates . map do | candidate | slug = @object . normalize_friendly_id ( candidate . map ( & :call ) . join ( ' ' ) ) yield slug if wanted? ( slug ) end end
Visits each candidate, calls it, passes it to `normalize_friendly_id` and
yields the wanted slug candidates.
Visits each candidate calls it passes it to ` normalize_friendly_id ` and yields the wanted slug candidates .
args
block