Enable compitability with Rails4.