Skip to content
Acts as Taskable is a Rails plugin that allows any ActiveRecord class to automatically accept tasks.
Ruby
Latest commit 62ae4f2 Apr 27, 2009 @tedkulp Updated README
Failed to load latest commit information.
generators/acts_as_taskable_migration
lib Moved all to plugin directory Oct 31, 2007
CHANGELOG
MIT-LICENSE
README
init.rb
install.rb Moved all to plugin directory Oct 31, 2007

README

Acts As Taskable
===========================

Acts as Taskable is a Rails plugin that allows any ActiveRecord class to automatically accept tasks

== Install ==
 
 * Run the following command:
 
 script/plugin install git://github.com/tedkulp/acts_as_taskable.git
 
 * Generate and apply the migration:

 ruby script/generate acts_as_taskable_migration
 rake db:migrate

== Usage == 
 
 * Make you ActiveRecord model act as taskable.
 
 class Model < ActiveRecord::Base
   acts_as_taskable
 end
 
 * Add a task to a model instance
 
 model = Model.new
 task = Task.new
 task.title = 'Kill bill'
 task.due_bye = Time.now.next_week
 task.user_id = @user.id   # The id of any specific user.
 model.tasks << task

 * Retrieve all tasks for a model instance
 
 model.tasks     # Yes! It is AS easy as that

== Credits ==

Juixe Software - Shamelessly copied from the Acts as Commentable plugin

== More ==

http://code.google.com/p/acts-as-taskable/
Something went wrong with that request. Please try again.