I have my slug candidates set as :
def slug_candidates
[
:full_name,
[:full_name, :location],
:display_name
]
end
def should_generate_new_friendly_id?
full_name_changed? || location_changed? || display_name_changed?
end
But if I update the display_name
, the slug generated is the display name -- even though the first candidate is available (full_name).
Any idea on why that would be the case?
Shouldn't updating a field look at the candidates array again to generate the new slug?