diff options
| author | hukl <contact@smyck.org> | 2009-03-16 20:58:49 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-18 12:16:59 +0100 |
| commit | d2bfbfd2810fbee673e43b2515db8bac527b3441 (patch) | |
| tree | 1b46e8af44c871290a7a74ab17a8c7201e22f7a9 /app/models/node.rb | |
| parent | d957a33a0d50f00c1968c5d12e728bd73ea186b3 (diff) | |
Refactored Chaos Calendar by wrapping libical and introducing event and occurrence model. More improvements to come. Enables us to create events with reoccurrence and intervals etc.
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index d2db4ba..da26164 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -7,6 +7,7 @@ class Node < ActiveRecord::Base | |||
| 7 | belongs_to :head, :class_name => "Page", :foreign_key => :head_id | 7 | belongs_to :head, :class_name => "Page", :foreign_key => :head_id |
| 8 | belongs_to :draft, :class_name => "Page", :foreign_key => :draft_id | 8 | belongs_to :draft, :class_name => "Page", :foreign_key => :draft_id |
| 9 | has_many :permissions | 9 | has_many :permissions |
| 10 | has_one :event | ||
| 10 | 11 | ||
| 11 | # Callbacks | 12 | # Callbacks |
| 12 | after_create :initialize_empty_page | 13 | after_create :initialize_empty_page |
