[Fix] Added compatibility with new Rails 4.2 APIs
Merge pull request #44 from marzapower/master

[Fix] Added compatibility with new Rails 4.2 APIs