rails 4 compatibility

Never mind all the commits the logs weren't showing up properly in my terminal but I figured out it was a problem on my end. This works with rails4 and should work with rails3.