Make rails compatable