Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 2
- Log:
Initial import of Instiki 0.11.0 sources from a downloaded Tarball.
Instiki is a Ruby On Rails based Wiki clone.
- Author:
- adh
- Date:
- Sat Jul 22 14:54:51 +0100 2006
- Size:
- 505 Bytes
1 | # This class maintains the state of wiki references for newly created or newly deleted pages |
2 | class PageObserver < ActiveRecord::Observer |
3 | |
4 | def after_create(page) |
5 | WikiReference.update_all("link_type = '#{WikiReference::LINKED_PAGE}'", |
6 | ['referenced_name = ?', page.name]) |
7 | end |
8 | |
9 | def before_destroy(page) |
10 | WikiReference.delete_all ['page_id = ?', page.id] |
11 | WikiReference.update_all("link_type = '#{WikiReference::WANTED_PAGE}'", |
12 | ['referenced_name = ?', page.name]) |
13 | end |
14 | |
15 | end |