ben7th/vote — comment on commit ebf5f654b14413dd34faf6d3fe8dfaa6009ff063
File: app/models/vote_result_item.rb line 9
By ben7th:

```ruby
validates :user_id, :vote_id, :vote_item_id, :select_limit, :presence => true
```

改为

```ruby
validates :user, :vote, :vote_item, :select_limit, :presence => true
```

直接校验对象即可。好处是可以触发对象的关联校验。
ruby编程中应多遵循面向对象原则。