cirandas.net

ref: master

plugins/comment_group/lib/ext/comment.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
require_dependency 'comment'

class Comment

  scope :without_group, -> { where group_id: nil }

  scope :in_group, -> group_id { where 'group_id = ?', group_id }

  attr_accessible :group_id

end