Started compatibility for rails4 support

Signed-off-by: Keith Walters <keith.walters@cattywamp.us>