Skip to content

Commit

Permalink
support contact_email in clients api
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 8, 2020
1 parent 5cc01bf commit 0b1f2ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Client < ActiveRecord::Base
alias_attribute :flipper_id, :symbol
alias_attribute :created_at, :created
alias_attribute :updated_at, :updated
alias_attribute :contact_email, :system_email
attr_readonly :symbol
delegate :symbol, to: :provider, prefix: true
delegate :consortium_id, to: :provider, allow_nil: true
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/clients_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"attributes" => {
"symbol" => provider.symbol + ".IMPERIAL",
"name" => "Imperial College",
"systemEmail" => "[email protected]",
"contactEmail" => "[email protected]",
"clientType" => "repository"
},
"relationships": {
Expand Down

0 comments on commit 0b1f2ef

Please sign in to comment.