This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 4ace4cc134a7b48a56d9209f6f39e53c531c78c6
tree eb7ac5506f4f3382f2902a0976cbed135b82129a
parent e6d0db3d7ea709515231848ed0be418984bff642
tree eb7ac5506f4f3382f2902a0976cbed135b82129a
parent e6d0db3d7ea709515231848ed0be418984bff642
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Tue Dec 09 10:38:39 -0800 2008 | |
| |
README | Tue Dec 09 10:48:31 -0800 2008 | |
| |
Rakefile | Tue Sep 30 14:10:46 -0700 2008 | |
| |
init.rb | Tue Sep 30 14:10:46 -0700 2008 | |
| |
lib/ | ||
| |
test/ |
README
TimelineFu ========== Easily build timelines, much like GitHub's news feed. Requirements ============ You'll need a TimelineEvent class, which TimelineFu will use. The name is hard-coded. Your TimelineEvent model will receive the following parameters in #create! * event_type * target * secondary_target * actor It is your responsibility as the developer to correctly associate the objects to your columns (or however you're storing them). You could associate polymorphically using this: class TimelineEvent < ActiveRecord::Base belongs_to :target, :polymorphic => true belongs_to :secondary_target, :polymorphic => true belongs_to :actor, :polymorphic => true end For each object that can be a target of events, make it an event target: class Commit < ActiveRecord::Base acts_as_event_target end class Comment < ActiveRecord::Base acts_as_event_target end class Repository < ActiveRecord::Base acts_as_event_target end Copyright (c) 2008 James Golick, released under the MIT license








