adding support for rails 4

I'm not sure if there is more needed from this.