extract codes from post, user and category modle to sluggable.rb