81ba3f9177
Signed-off-by: Rémy Coutable <remy@rymai.me>
13 lines
286 B
Ruby
13 lines
286 B
Ruby
module API
|
|
module Helpers
|
|
module MembersHelpers
|
|
def find_source(source_type, id)
|
|
public_send("find_#{source_type}!", id)
|
|
end
|
|
|
|
def authorize_admin_source!(source_type, source)
|
|
authorize! :"admin_#{source_type}", source
|
|
end
|
|
end
|
|
end
|
|
end
|