get the badge

This commit is contained in:
Rimian Perkins 2017-02-01 16:16:42 +11:00
parent 853c94a72e
commit 504bfbd677
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ module Choice
:currency => 'aud'
)
BadgeGranter.grant(consumer_defender_badge, current_user)
head :created
end
@ -24,7 +24,7 @@ module Choice
private
def consumer_defender_badge
Discourse.badges['badges'].select { |b| b['name'] == 'Consumer Defender' }.first
Badge.find_by_name('Consumer Defender')
end
end
end