support for Rails4