Use blank in save display because file attributes are never nil
This commit is contained in:
parent
2f1566718e
commit
84fc1d2d93
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def safe_display(value, &block)
|
||||
return unless value
|
||||
return if value.blank?
|
||||
|
||||
yield(value)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue