ben7th/vote — comment on commit 492ed50d97b340ded30239f9a2b3c7605e1e8c42
File: app/models/vote_result_item.rb line 7
By ben7th:

如果模型关联时，表名和字段名遵循rails的COC规约，则无需额外指定

```ruby
# 不用这样
belongs_to :user, :class_name => 'User', :foreign_key => :user_id
belongs_to :vote_item, :class_name => 'VoteItem', :foreign_key => :vote_item_id
belongs_to :vote, :class_name => 'Vote', :foreign_key => :vote_id
```

```ruby
# 直接这样即可
belongs_to :user
belongs_to :vote_item
belongs_to :vote
```