Module: Commentem::Commenter::InstanceMethods

Defined in:
lib/commentem/commenter.rb

Instance Method Summary collapse

Instance Method Details

#comment(commentable, content) ⇒ Object



19
20
21
# File 'lib/commentem/commenter.rb', line 19

def comment(commentable, content)
  self.commentings.create(:commentable => commentable, :content => content)
end

#comments_on(commentable) ⇒ Object



15
16
17
# File 'lib/commentem/commenter.rb', line 15

def comments_on(commentable)
  self.commentings.comments_on(commentable)
end