Syntax updates for creator_link and updator_link

This commit is contained in:
Priit Tark 2015-03-23 11:58:48 +02:00
parent d8d951974e
commit b2ec23edc9
2 changed files with 8 additions and 8 deletions

View file

@ -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])