Skip to content

Commit

Permalink
update REAME according to last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mickey committed Dec 19, 2010
1 parent fd99784 commit f1c780f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ rake db:migrate
commentable = Post.find(1)
comments = commentable.comments.recent.limit(10).all

* Add multiple type of comments to a model

class Todo < ActiveRecord::Base
acts_as_commentable :public, :private
end

* Fetch comments for a this model:

public_comments = Todo.find(1).public_comments
private_comments = Todo.find(1).private_comments

== Credits

Expand Down

0 comments on commit f1c780f

Please sign in to comment.