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:
- 816 Bytes
1 | require 'fileutils' |
2 | |
3 | module Dataset |
4 | module Database # :nodoc: |
5 | |
6 | # Provides Dataset a way to clear, dump and load databases. |
7 | class Base |
8 | include FileUtils |
9 | |
10 | def clear |
11 | connection = ActiveRecord::Base.connection |
12 | ActiveRecord::Base.silence do |
13 | connection.tables.each do |table_name| |
14 | connection.delete "DELETE FROM #{connection.quote_table_name(table_name)}", |
15 | "Dataset::Database#clear" unless table_name == ActiveRecord::Migrator.schema_migrations_table_name |
16 | end |
17 | end |
18 | end |
19 | |
20 | def record_meta(record_class) |
21 | record_metas[record_class] ||= Dataset::Record::Meta.new(record_class) |
22 | end |
23 | |
24 | protected |
25 | def record_metas |
26 | @record_metas ||= Hash.new |
27 | end |
28 | end |
29 | end |
30 | end |