Rails 4 support

https://github.com/freeformz/logglier/issues/26#issuecomment-42821116