mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
parent
743c6fecab
commit
03ae863748
1 changed files with 5 additions and 2 deletions
|
@ -47,8 +47,11 @@ module ApplicationHelper
|
|||
return 'unknown' if model.updator.blank?
|
||||
return model.updator if model.updator.is_a? String
|
||||
|
||||
# can be api user or some other user
|
||||
link_to(model.updator, ['admin', model.updator])
|
||||
if model.updator.kind_of?(RegistrantUser)
|
||||
model.updator
|
||||
else
|
||||
link_to(model.updator, ['admin', model.updator])
|
||||
end
|
||||
end
|
||||
|
||||
def currency(amount)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue