Generating permalink from rake task for Model inside a module

I was trying to generate permalink for existing table who's permalink attributes where empty somethings like 
```ruby
rake has_permalink:generate_permalinks ActsAsTaggableOn::Tag
```
Which couldn't generate , so made few changes to the has_permalink.rake so that its accepts something like above