Fix group to work on Rails 4