Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/models/service_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,4 @@ def encryption_opts
def live?
active? && approved?
end

def redirect_uris
super.presence || Array(redirect_uri)
end
end
4 changes: 2 additions & 2 deletions spec/models/service_provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
)
end

it 'is an array of the legacy redirect_uri' do
expect(service_provider.redirect_uris).to eq(%w[http://a.example.com])
it 'ignores the old singular column and just uses the new plural one' do
expect(service_provider.redirect_uris).to eq([])
end
end

Expand Down