view .svn/pristine/6d/6d8b57d3f9af4fafe2fd6cde3312b234c4375e61.svn-base @ 1074:b98e55985cb7 luisf

Merge
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 21 Nov 2012 16:04:55 +0000
parents cbb26bc654de
children
line wrap: on
line source
class Message < ActiveRecord::Base
  generator_for :subject, :start => 'A Message'
  generator_for :content, :start => 'Some content here'
  generator_for :board, :method => :generate_board

  def self.generate_board
    Board.generate!
  end
end