Skip to content

Commit

Permalink
properly handle missing provider. #747
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 14, 2021
1 parent 251c79b commit a6a3615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def name

# workaround for non-standard database column names and association
def provider_id
provider.uid
provider.present? ? provider.uid : nil
end

def provider_id=(value)
Expand Down

0 comments on commit a6a3615

Please sign in to comment.