view test/exemplars/journal_exemplar.rb @ 1017:63f8c4f2cf67 bibplugin_bibtex_display

Shows the publication list as IEEE formatted entries; Adds 2 links, one for the publication details and another for to show the publication details as bibtex.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Mon, 12 Nov 2012 20:16:35 +0000
parents 513646585e45
children
line wrap: on
line source
class Journal < ActiveRecord::Base
  generator_for :journalized, :method => :generate_issue
  generator_for :user, :method => :generate_user

  def self.generate_issue
    project = Project.generate!
    Issue.generate_for_project!(project)
  end

  def self.generate_user
    User.generate_with_protected!
  end
end