Rails 4 compability