2010-01-27 21:29:03 +03:00
|
|
|
class WikiPage < ActiveRecord::Base
|
2011-09-23 00:51:42 +04:00
|
|
|
generator_for :title, :start => 'AWikiPage'
|
2010-01-27 21:29:03 +03:00
|
|
|
generator_for :wiki, :method => :generate_wiki
|
|
|
|
|
|
|
|
def self.generate_wiki
|
|
|
|
Wiki.generate!
|
|
|
|
end
|
|
|
|
end
|