2010-01-27 21:29:03 +03:00
|
|
|
class Message < ActiveRecord::Base
|
2011-09-23 21:23:22 +04:00
|
|
|
generator_for :subject, :start => 'A Message'
|
|
|
|
generator_for :content, :start => 'Some content here'
|
2010-01-27 21:29:03 +03:00
|
|
|
generator_for :board, :method => :generate_board
|
|
|
|
|
|
|
|
def self.generate_board
|
|
|
|
Board.generate!
|
|
|
|
end
|
|
|
|
end
|