Revision 1287:1c3e2fb6793a plugins

View differences:

plugins/redmine_bibliography/app/models/publication.rb
10 10

  
11 11
  validates_presence_of :title
12 12
  validates_length_of :authorships, :minimum => 1, :message => l("error_no_authors")
13
  validates_associated :bibtex_entry, :authorships
13 14

  
14 15
  accepts_nested_attributes_for :authorships
15 16
  accepts_nested_attributes_for :authors, :allow_destroy => true
......
41 42
  # Ensure error message uses proper text instead of
42 43
  # bibtex_entry.entry_type (#268).  There has to be a better way to
43 44
  # do this!
44
  def self.human_attribute_name(k)
45
  def self.human_attribute_name(k, *args)
45 46
    if k == 'bibtex_entry.entry_type'
46 47
      l(:field_entry_type)
47 48
    else

Also available in: Unified diff