Simple Hack to support rails 4

Simple Hack to support rails 4