Railtie fixed for Rails4, fixes #28