Update generator to be Rails 4 compliant

The default argument workaround was originally found here: https://github.com/norman/friendly_id/pull/392
Merge pull request #8 from danielgrippi/patch-1

Update generator to be Rails 4 compliant