discourse-subscriptions/app/controllers/concerns/group.rb

12 lines
211 B
Ruby
Raw Permalink Normal View History

2019-11-28 17:01:56 -05:00
# frozen_string_literal: true
2019-12-03 19:23:45 -05:00
module DiscourseSubscriptions
2019-11-28 17:01:56 -05:00
module Group
extend ActiveSupport::Concern
def plan_group(plan)
::Group.find_by_name(plan[:metadata][:group_name])
end
end
end