Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 1010 Bytes
1 | module ContentState |
2 | class JustPublished < Published |
3 | include Reloadable |
4 | include Singleton |
5 | |
6 | class << self |
7 | def derivable_from(content) |
8 | content.new_record? && |
9 | content.published && |
10 | content[:published_at].nil? |
11 | end |
12 | end |
13 | |
14 | def just_published? |
15 | true |
16 | end |
17 | |
18 | |
19 | def serialize_on(content) |
20 | content[:published] = true |
21 | content[:published_at] ||= Time.now |
22 | true |
23 | end |
24 | |
25 | def set_published_at(content, new_time) |
26 | content[:published_at] = new_time |
27 | return if content[:published_at].nil? |
28 | if content.published_at > Time.now |
29 | content.state = PublicationPending.instance |
30 | end |
31 | end |
32 | |
33 | def after_save(content) |
34 | content.state = Published.instance |
35 | end |
36 | |
37 | def send_notifications(content, controller) |
38 | content.interested_users.each do |user| |
39 | content.send_notification_to_user(controller, user) |
40 | end |
41 | end |
42 | |
43 | def send_pings(content) |
44 | content.really_send_pings |
45 | end |
46 | end |
47 | end |