app/models/profession.rb in voluntary-0.5.2 vs app/models/profession.rb in voluntary-0.6.0

- old
+ new

@@ -8,6 +8,12 @@ attr_accessible :name extend FriendlyId friendly_id :name, :use => :slugged + + private + + def should_generate_new_friendly_id? + slug.blank? || name_changed? + end end \ No newline at end of file