2016-06-23 11:14:31 -04:00
|
|
|
module API
|
|
|
|
module Helpers
|
|
|
|
module MembersHelpers
|
|
|
|
def find_source(source_type, id)
|
2016-11-24 10:58:32 -05:00
|
|
|
public_send("find_#{source_type}!", id)
|
2016-06-23 11:14:31 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def authorize_admin_source!(source_type, source)
|
|
|
|
authorize! :"admin_#{source_type}", source
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|