##// END OF EJS Templates
added a condition on project -> members association so that only active users are considered as members...
added a condition on project -> members association so that only active users are considered as members git-svn-id: http://redmine.rubyforge.org/svn/trunk@116 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r78:55ed70529aef
r113:718de6c7fd2c
Show More
comment.rb
6 lines | 237 B | text/x-ruby | RubyLexer
class Comment < ActiveRecord::Base
belongs_to :commented, :polymorphic => true, :counter_cache => true
belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
validates_presence_of :commented, :author, :comment
end