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:
- 1085 Bytes
1 | class Admin::GeneralController < Admin::BaseController |
2 | def index |
3 | if this_blog.canonical_server_url.blank? |
4 | this_blog.canonical_server_url = server_url |
5 | end |
6 | @page_cache_size = PageCache.count |
7 | end |
8 | |
9 | def redirect |
10 | flash[:notice] = "Please review and save the settings before continuing" |
11 | redirect_to :action => "index" |
12 | end |
13 | |
14 | def update_database |
15 | @current_version = Migrator.current_schema_version |
16 | @needed_version = Migrator.max_schema_version |
17 | @support = Migrator.db_supports_migrations? |
18 | @needed_migrations = Migrator.available_migrations[@current_version..@needed_version].collect do |mig| |
19 | mig.scan(/\d+\_([\w_]+)\.rb$/).flatten.first.humanize |
20 | end |
21 | end |
22 | |
23 | def migrate |
24 | if request.post? |
25 | Migrator.migrate |
26 | redirect_to :action => 'update_database' |
27 | end |
28 | end |
29 | |
30 | def update |
31 | if request.post? |
32 | Blog.transaction do |
33 | params[:setting].each { |k,v| this_blog[k] = v} |
34 | this_blog.save |
35 | flash[:notice] = 'config updated.' |
36 | end |
37 | redirect_to :action => 'index' |
38 | end |
39 | end |
40 | |
41 | private |
42 | end |