usage of raise corrected

This commit is contained in:
Sam
2015-05-07 11:00:51 +10:00
parent 77cc087b13
commit 8277a586bb
7 changed files with 10 additions and 10 deletions

View File

@@ -85,7 +85,7 @@ class UserBadgesController < ApplicationController
else
badge = Badge.find_by(name: params[:badge_name], enabled: true)
end
raise Discourse::NotFound.new if badge.blank?
raise Discourse::NotFound if badge.blank?
badge
end