comparison plugins/redmine_bibliography/app/models/bibtex_entry.rb @ 1484:51364c0cd58f redmine-2.4-integration

Merge from live branch. Still need to merge manually in files overridden by plugins.
author Chris Cannam
date Wed, 15 Jan 2014 09:59:14 +0000
parents b4b72f1eb644
children
comparison
equal deleted inserted replaced
1464:261b3d9a4903 1484:51364c0cd58f
1 class BibtexEntry < ActiveRecord::Base
2 unloadable
3
4 belongs_to :publication
5 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 def entry_type_label
13 entry_type = self.entry_type
14 BibtexEntryType.find(entry_type).label
15 end
16 end