Commit 5da48471 authored by James Fargher's avatar James Fargher

Merge branch 'tancnle-convert-saml-module-to-class' into 'master'

Convert SAML module to class

See merge request gitlab-org/gitlab!63813
parents 9cdd4c35 08224b49
......@@ -2,7 +2,7 @@
module GroupSaml
module SamlProvider
module BaseService
class BaseService
extend FastGettext::Translation
attr_reader :saml_provider, :params, :current_user
......
# frozen_string_literal: true
require_dependency 'group_saml/saml_provider/base_service'
module GroupSaml
module SamlProvider
class CreateService
include BaseService
class CreateService < BaseService
def initialize(current_user, group, params:)
@group = group
super(current_user, group.build_saml_provider, params: params)
......
# frozen_string_literal: true
require_dependency 'group_saml/saml_provider/base_service'
module GroupSaml
module SamlProvider
class UpdateService
include BaseService
class UpdateService < BaseService
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment