view vendor/plugins/redmine_bibliography/app/models/bibtex_entry.rb @ 557:2fe129b04d82 feature_36

Fixes Bug #222.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 03 Aug 2011 16:09:27 +0100
parents f05f3a9ef569
children 658cfb481618
line wrap: on
line source
class BibtexEntry < ActiveRecord::Base
  unloadable

  belongs_to :publication
  validates_presence_of :entry_type
  
  def entry_type_name
    entry_type = self.entry_type
    BibtexEntryType.find(entry_type).name
  end
  
  
  
end