mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Syntax updates for creator_link and updator_link
This commit is contained in:
parent
d8d951974e
commit
b2ec23edc9
2 changed files with 8 additions and 8 deletions
|
@ -20,7 +20,7 @@ module ApplicationHelper
|
|||
|
||||
def creator_link(model)
|
||||
return 'not present' if model.blank?
|
||||
return model if model.kind_of? String
|
||||
return model if model.is_a? String
|
||||
|
||||
# can be api user or some other user
|
||||
link_to(model.creator, ['admin', model.creator])
|
||||
|
@ -28,7 +28,7 @@ module ApplicationHelper
|
|||
|
||||
def updator_link(model)
|
||||
return 'not present' if model.blank?
|
||||
return model if model.kind_of? String
|
||||
return model if model.is_a? String
|
||||
|
||||
# can be api user or some other user
|
||||
link_to(model.creator, ['admin', model.updator])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue