4 rails compatibility