annotate .svn/pristine/81/8150bf5b8c067659e615bbcb4f9a5a40975b2bf9.svn-base @ 952:12f729c9f47d bibplugin_bibtex

the "authors" div was not closing correctly - fixed now.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 06 Aug 2012 12:13:28 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class Comment < ActiveRecord::Base
Chris@909 2 generator_for :commented, :method => :generate_news
Chris@909 3 generator_for :author, :method => :generate_author
Chris@909 4 generator_for :comments => 'What great news this is.'
Chris@909 5
Chris@909 6 def self.generate_news
Chris@909 7 News.generate!
Chris@909 8 end
Chris@909 9
Chris@909 10 def self.generate_author
Chris@909 11 User.generate_with_protected!
Chris@909 12 end
Chris@909 13 end