Correct syntax fix for Rails 4.0.8