From c766bf76a2003069e8a979aa98aa3e4b5d7c7fc6 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 25 Nov 2014 18:25:54 +0800 Subject: [PATCH] small fix --- app/controllers/announcements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 602834f..56225bc 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -50,8 +50,8 @@ class AnnouncementsController < ApplicationController "status" => status["name"], "status-class" => "status-#{status['classname']}" } - author = User.find(a.create_user_id).member_profile.name rescue "" end + author = User.find(a.create_user_id).member_profile.name rescue "" { "title" => a.title, "subtitle" => a.subtitle,