Fixes #119 ... adding support for rails 4