* update badge language files * update admin controller * fix tests * no actually fix the tests * remove 'community' from notification * fix spec * fix interpolations
17 lines
418 B
Ruby
17 lines
418 B
Ruby
module Badges
|
|
class AwardFabFive
|
|
BADGE_SLUG = "fab-5".freeze
|
|
|
|
def self.call(usernames, message_markdown = default_message_markdown)
|
|
::Badges::Award.call(
|
|
User.where(username: usernames),
|
|
BADGE_SLUG,
|
|
message_markdown,
|
|
)
|
|
end
|
|
|
|
def self.default_message_markdown
|
|
I18n.t("services.badges.congrats", community: Settings::Community.community_name)
|
|
end
|
|
end
|
|
end
|