view test/exemplars/message_exemplar.rb @ 1113:ca871a83c0f4 bibplugin_bibtex

creates the author in case it no suggestion was made by the user.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 11 Dec 2012 18:48:33 +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