needed to rename this for rails 4 compatibility
needed to do this for ruby 2
Merge pull request #3 from ghiculescu/rails4

Rails 4 and Ruby 2 tweaks