Revision 1399:6106c49c5f50 plugins
| plugins/redmine_bibliography/app/models/authorship.rb | ||
|---|---|---|
| 128 | 128 |
# create new author and update user |
| 129 | 129 |
author = Author.new |
| 130 | 130 |
author.save |
| 131 |
user << author |
|
| 131 |
user.author = author |
|
| 132 |
user.save |
|
| 132 | 133 |
else |
| 133 | 134 |
logger.error { "found an author!" }
|
| 134 | 135 |
author = user.author |
Also available in: Unified diff