Added support for Rails4.