Requires rails 3.2