Updated creator helper

This commit is contained in:
Priit Tark 2015-03-23 17:21:45 +02:00
parent 7bc517530c
commit 717de1c886
2 changed files with 5 additions and 1 deletions

View file

@ -20,6 +20,7 @@ module ApplicationHelper
def creator_link(model)
return 'not present' if model.blank?
return 'unknown' if model.creator.blank?
return model.creator if model.creator.is_a? String
# can be api user or some other user
@ -28,6 +29,7 @@ module ApplicationHelper
def updator_link(model)
return 'not present' if model.blank?
return 'unknown' if model.updator.blank?
return model.updator if model.updator.is_a? String
# can be api user or some other user