Skip to content

Commit

Permalink
Fix a 500 when a user has post a message on board and closed its account
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Dec 29, 2016
1 parent 89d912d commit 3ddd904
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/board.rb
Expand Up @@ -31,6 +31,7 @@ def user=(user)
end

def user_link
@user_name ||= ""
(@user_url.blank? ? @user_name : "<a href=\"#{@user_url}\">#{@user_name}</a>").html_safe
end

Expand Down

0 comments on commit 3ddd904

Please sign in to comment.