mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 08:54:19 +08:00
11 lines
211 B
Ruby
11 lines
211 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseSubscriptions
|
|
module Group
|
|
extend ActiveSupport::Concern
|
|
|
|
def plan_group(plan)
|
|
::Group.find_by_name(plan[:metadata][:group_name])
|
|
end
|
|
end
|
|
end
|