diff options
Diffstat (limited to 'test/exemplars/wiki_exemplar.rb')
-rw-r--r-- | test/exemplars/wiki_exemplar.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/exemplars/wiki_exemplar.rb b/test/exemplars/wiki_exemplar.rb new file mode 100644 index 000000000..65b93a233 --- /dev/null +++ b/test/exemplars/wiki_exemplar.rb @@ -0,0 +1,8 @@ +class Wiki < ActiveRecord::Base + generator_for :start_page => 'Start' + generator_for :project, :method => :generate_project + + def self.generate_project + Project.generate! + end +end |