Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 584 Bytes
1 | class ConvertTitlePrefixSetting < ActiveRecord::Migration |
2 | class BareBlog < ActiveRecord::Base |
3 | include BareMigration |
4 | |
5 | serialize :settings, Hash |
6 | end |
7 | |
8 | def self.up |
9 | BareBlog.find(:all).each do |b| |
10 | if b.settings.has_key? "title_prefix" |
11 | b.settings["title_prefix"] = (b.settings["title_prefix"] ? 1 : 0) |
12 | b.save! |
13 | end |
14 | end |
15 | end |
16 | |
17 | def self.down |
18 | BareBlog.find(:all).each do |b| |
19 | if b.settings.has_key? "title_prefix" |
20 | b.settings["title_prefix"] = (b.settings["title_prefix"] == 1) |
21 | b.save! |
22 | end |
23 | end |
24 | end |
25 | end |