Skip to content

Commit

Permalink
Set default issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Oct 16, 2024
1 parent 7f92327 commit ca88def
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ module Providers
class SetAttributesService < BaseServices::SetAttributes
private

def set_default_attributes(*)
def set_default_attributes(*) # rubocop:disable Metrics/AbcSize
model.change_by_system do
model.issuer ||= OpenProject::StaticRouting::StaticUrlHelpers.new.root_url
model.creator ||= user
model.slug ||= "#{model.class.slug_fragment}-#{model.display_name.to_url}" if model.display_name
end
Expand Down

0 comments on commit ca88def

Please sign in to comment.