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:
- 315 Bytes
1 | module Radiant |
2 | class Exporter |
3 | def self.export |
4 | hash = {} |
5 | [Radiant::Config, User, Page, PagePart, Snippet, Layout].each do |klass| |
6 | hash[klass.name.pluralize] = klass.find(:all).inject({}) { |h, record| h[record.id.to_i] = record.attributes; h } |
7 | end |
8 | hash.to_yaml |
9 | end |
10 | end |
11 | end |