Merge pull request #13 from jheiss/rails4

Update syntax to be compatible with Rails 4
Updates to work with Rails 4.x, hat tip to jheiss and laserlemon