fixes #2741 - rails 3 syntax
squash this commit