Mercurial > hg > soundsoftware-site
view test/exemplars/wiki_content_exemplar.rb @ 917:66ac47c3719b cannam_integration
Rename .text.html.erb and .text.plain.erb to .html.erb and .text.erb in line with the other mailer files
author | Chris Cannam |
---|---|
date | Tue, 06 Mar 2012 14:05:16 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line source
class WikiContent < ActiveRecord::Base generator_for :text => 'Some content' generator_for :page, :method => :generate_page def self.generate_page WikiPage.generate! end end