To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_bibliography / app / models / bibtex_entry.rb @ 1579:aba122ac2d40

History | View | Annotate | Download (335 Bytes)

1 393:9595ab4cac6b luis
class BibtexEntry < ActiveRecord::Base
2 544:f05f3a9ef569 luis
  unloadable
3
4 393:9595ab4cac6b luis
  belongs_to :publication
5 544:f05f3a9ef569 luis
  validates_presence_of :entry_type
6
7
  def entry_type_name
8
    entry_type = self.entry_type
9
    BibtexEntryType.find(entry_type).name
10
  end
11
12 586:658cfb481618 chris
  def entry_type_label
13
    entry_type = self.entry_type
14
    BibtexEntryType.find(entry_type).label
15 685:4481db876cdb luis
  end
16 393:9595ab4cac6b luis
end