Acts As Noteable plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://acts-as-noteable.googlecode.com/svn/trunk/acts_as_noteable/
* Make you ActiveRecord model act as noteable.
class Model < ActiveRecord::Base acts_as_noteable end
* Add a note to a model instance
model = Model.new note = Comment.new note.body = 'Some comment' model.notes << note
* Each note references a noteable object
model = Model.find(1) model.notes.get(0).noteable == model
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | Back in time (1 older version) | Last edited by: scott, 7 months ago

