update the gem so it works both with rails 3 and rails 4
Merge pull request #3 from jobteaser/rails4-update

update the gem so it works both with rails 3 and rails 4