forked from saurabh/personal-honor
fix if awarding_unit is empty
This commit is contained in:
parent
3a61eab435
commit
b09132c925
|
@ -5,7 +5,7 @@ class PersonalHonorsController < ApplicationController
|
||||||
{
|
{
|
||||||
"year" => honor.year,
|
"year" => honor.year,
|
||||||
"award_name" => honor.award_name,
|
"award_name" => honor.award_name,
|
||||||
"awarding_unit" => honor.awarding_unit,
|
"awarding_unit" => (honor.awarding_unit rescue ""),
|
||||||
"award_winner" => (honor.member_profile.name rescue ""),
|
"award_winner" => (honor.member_profile.name rescue ""),
|
||||||
"link_to_show" => OrbitHelper.url_to_show(honor.to_param)
|
"link_to_show" => OrbitHelper.url_to_show(honor.to_param)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue