Redmine/test/exemplars/wiki_page_exemplar.rb

9 lines
186 B
Ruby

class WikiPage < ActiveRecord::Base
generator_for :title, :start => 'AWikiPage'
generator_for :wiki, :method => :generate_wiki
def self.generate_wiki
Wiki.generate!
end
end