annotate .svn/pristine/cf/cfa3b42a480e62d585b5ac3b60b5eaa7a3df4427.svn-base @ 947:be4106d14a35 bibplugin_bibtex

Parses a pasted bibtex entry and correctly adds its fields *except* the author names/institutions. Todo: Parse the author names/institutions and show the errors (flashing on the top of the page).
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 18 Jul 2012 16:57:54 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class Member < ActiveRecord::Base
Chris@909 2 generator_for :roles, :method => :generate_roles
Chris@909 3 generator_for :principal, :method => :generate_user
Chris@909 4
Chris@909 5 def self.generate_roles
Chris@909 6 [Role.generate!]
Chris@909 7 end
Chris@909 8
Chris@909 9 def self.generate_user
Chris@909 10 User.generate_with_protected!
Chris@909 11 end
Chris@909 12 end