support for rails 4.2
Merge pull request #147 from seuros/master

Support for rails 4.2