fix for the railtie in rails 4

trying to get this gem working in rails 4, since the new version creates a million bugs.