Patch #44423 » 0002-Memoize-user-lookups-in-parse_redmine_links.patch
| app/helpers/application_helper.rb | ||
|---|---|---|
| 1352 | 1352 |
end |
| 1353 | 1353 |
elsif sep == "@" |
| 1354 | 1354 |
name = remove_double_quotes(identifier) |
| 1355 |
u = User.visible.find_by_login(name.downcase) |
|
| 1355 |
@users_by_login ||= {}
|
|
| 1356 |
u = @users_by_login.fetch(name.downcase) { |k| @users_by_login[k] = User.visible.find_by_login(k) }
|
|
| 1356 | 1357 |
link = link_to_mention(u, obj, only_path: only_path) if u |
| 1357 | 1358 |
end |
| 1358 | 1359 |
end |
- « Previous
- 1
- 2
- Next »