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