Skip to content

Commit

Permalink
Rename EditorDecorator into ServiceProviderDecorator
Browse files Browse the repository at this point in the history
  • Loading branch information
Isalafont committed Oct 3, 2024
1 parent c126f8e commit 4a66411
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def already_integrated_editors
end

def decorated_editors
@decorated_editors ||= EditorDecorator.decorate_collection(sorted_editors, context: { scope: :api_entreprise })
@decorated_editors ||= ServiceProviderDecorator.decorate_collection(sorted_editors, context: { scope: :api_entreprise })
end

def editors
Expand Down
2 changes: 1 addition & 1 deletion app/facades/new_authorization_request/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def already_integrated_editors_ids
end

def decorated_editors
@decorated_editors ||= EditorDecorator.decorate_collection(sorted_editors)
@decorated_editors ||= ServiceProviderDecorator.decorate_collection(sorted_editors)
end

def decorated_editors_ids
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
describe '#decorated_editors' do
subject(:decorated_editors) { facade.decorated_editors }

it { is_expected.to all(be_a(EditorDecorator)) }
it { is_expected.to all(be_a(ServiceProviderDecorator)) }
end

describe '#editors_index' do
Expand Down

0 comments on commit 4a66411

Please sign in to comment.