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 @@ ...@@ -2,7 +2,7 @@
module GroupSaml module GroupSaml
module SamlProvider module SamlProvider
module BaseService class BaseService
extend FastGettext::Translation extend FastGettext::Translation
attr_reader :saml_provider, :params, :current_user attr_reader :saml_provider, :params, :current_user
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'group_saml/saml_provider/base_service'
module GroupSaml module GroupSaml
module SamlProvider module SamlProvider
class CreateService class CreateService < BaseService
include BaseService
def initialize(current_user, group, params:) def initialize(current_user, group, params:)
@group = group @group = group
super(current_user, group.build_saml_provider, params: params) super(current_user, group.build_saml_provider, params: params)
......
# frozen_string_literal: true # frozen_string_literal: true
require_dependency 'group_saml/saml_provider/base_service'
module GroupSaml module GroupSaml
module SamlProvider module SamlProvider
class UpdateService class UpdateService < BaseService
include BaseService
end end
end 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