# HG changeset patch # User luisf # Date 1316447962 -3600 # Node ID 4903d6131c08eaaa8d3dc560590e4ad601579a28 # Parent c7306033ba7a9a60a03f2817ef3e26393524b44c Related to the previous commit (deleted all fields BibtexEntryType class variable and getter method). diff -r c7306033ba7a -r 4903d6131c08 vendor/plugins/redmine_bibliography/app/models/bibtex_entry_type.rb --- a/vendor/plugins/redmine_bibliography/app/models/bibtex_entry_type.rb Mon Sep 19 16:44:43 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/models/bibtex_entry_type.rb Mon Sep 19 16:59:22 2011 +0100 @@ -1,7 +1,5 @@ class BibtexEntryType < ActiveRecord::Base - @@all_fields = [ "booktitle", "editor", "publisher", "chapter", "pages", "volume", "series", "address", "edition", "month", "year", "type", "note", "number", "journal", "howpublished", "key", "school" ] - @@fields = Hash['article', ['journal', 'year', 'volume', 'number', 'pages', 'month', 'note' ], 'book' , [ 'editor', 'publisher', 'volume', 'series', 'address', 'edition', 'month', 'year', 'note' ], 'booklet' , [ 'howpublished', 'address', 'year', 'month', 'note', 'key' ], @@ -28,8 +26,4 @@ def self.fields (type) @@fields[ self.find(type).name ] end - - def self.all_fields - @@all_fields - end end