# HG changeset patch # User luisf # Date 1380634141 -3600 # Node ID 48d9b3ae9e1a7c9dc08e37fe4e06866fb35949f1 # Parent 6487f22bee9d3fea08e23145e6c3bbfd2e5da720 Added an institution setter to the Author model diff -r 6487f22bee9d -r 48d9b3ae9e1a plugins/redmine_bibliography/app/models/author.rb --- a/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 14:23:36 2013 +0100 +++ b/plugins/redmine_bibliography/app/models/author.rb Tue Oct 01 14:29:01 2013 +0100 @@ -18,4 +18,7 @@ } } + def institution + self.authorship.first.institution + end end