projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Ensure that issue comments have associated issues and users.
[rails.git]
/
app
/
models
/
issue_comment.rb
1
class IssueComment < ActiveRecord::Base
2
belongs_to :issue
3
belongs_to :user, :class_name => "User", :foreign_key => :commenter_user_id
4
5
validates :body, :presence => true
6
validates :user, :presence => true
7
validates :issue, :presence => true
8
end