add rails 4 support

This PR adds support for this gem to rails 4, it still supports rails 3.2