17 lines
243 B
Ruby
17 lines
243 B
Ruby
|
helpers do
|
||
|
|
||
|
def nullable(value)
|
||
|
if (value) and (value != '')
|
||
|
return value
|
||
|
else
|
||
|
return 'N/a'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def date_format(date)
|
||
|
dt = date.to_datetime
|
||
|
return dt.strftime('%B %d, %Y @ %I:%M:%S %p %Z')
|
||
|
end
|
||
|
|
||
|
end
|