use the same method signature that rails 4 uses