diff --git a/app/models/client.rb b/app/models/client.rb index e77e91e4f..ecf0b43ee 100644 --- a/app/models/client.rb +++ b/app/models/client.rb @@ -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 diff --git a/spec/requests/clients_spec.rb b/spec/requests/clients_spec.rb index cc7eaa070..0f828f41e 100644 --- a/spec/requests/clients_spec.rb +++ b/spec/requests/clients_spec.rb @@ -10,7 +10,7 @@ "attributes" => { "symbol" => provider.symbol + ".IMPERIAL", "name" => "Imperial College", - "systemEmail" => "bob@example.com", + "contactEmail" => "bob@example.com", "clientType" => "repository" }, "relationships": {