Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 273 Bytes
1 | class UserActionObserver < ActiveRecord::Observer |
2 | observe User, Page, Layout, Snippet |
3 | |
4 | cattr_accessor :current_user |
5 | |
6 | def before_create(model) |
7 | model.created_by = @@current_user |
8 | end |
9 | |
10 | def before_update(model) |
11 | model.updated_by = @@current_user |
12 | end |
13 | end |