openstax_salesforce 7.4.2 → 7.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec2ff227f834bc78d852f3c1370a79a8e87e5cbdcf2d59e5b7878b0a26ae3b87
4
- data.tar.gz: 38d056e612347555eb9445c9f21134cb5f1c041ecb35ee789f43d2b8dde6de56
3
+ metadata.gz: b6c58987e3047911c932a8b2393947f31955bc141dd52e9e3701159c3cc64715
4
+ data.tar.gz: 94720471e872005d8f9b2b818b68f416b6523bac4153664ad784d7d586e35f7d
5
5
  SHA512:
6
- metadata.gz: 8bedaab2742b813d6019f1797cdcba6bb1dab88547139ab3f79978935202a9e2dded30579614d81d66240a11aa476d7a1e11ad1b9584aea0f858b1b7b9e7eda4
7
- data.tar.gz: de77c227d1b187e39d4fb376708444e878c4a8d8273298ba3d9115116803d04ccdf69b3aff9148f27b9350a1efa08bb1c20f75dcb31ca0985dd015c4af231b76
6
+ metadata.gz: d2058e9d0ebabdfeaa9b991b6e29172ae8c5c703d1107d792f55cc474cf0e6b131302297f338f573d9a150e041aa216bc242772c3926c8cab1e12ee70d2d3e25
7
+ data.tar.gz: 463222c52dc42c1fe74e9c25eb27c81c9d53d5a93fdd02fb73487d03e341e2df4da66659a95ddf3d10cbc5f688af4bdf821ef647ede005491be45a6174fe2b40
@@ -8,9 +8,6 @@ module OpenStax
8
8
  belongs_to :contact, foreign_key: :salesforce_contact_id, model: OpenStax::Salesforce::Remote::Contact
9
9
  belongs_to :lead, foreign_key: :salesforce_lead_id, model: OpenStax::Salesforce::Remote::Lead
10
10
 
11
- VALID_ROLE_NAME = %w[Unknown Instructor Student Administrator Other].freeze
12
- VALID_ENV_NAME = %w[production staging qa dev local].freeze
13
-
14
11
  field :id, from: 'Id'
15
12
  field :account_id, from: 'Account_ID__c'
16
13
  field :account_uuid, from: 'Account_UUID__c'
@@ -20,24 +17,6 @@ module OpenStax
20
17
  field :signup_date, from: 'Signup_Date__c', as: :datetime
21
18
  field :account_environment, from: 'Environment__c'
22
19
 
23
- validates(
24
- :account_role,
25
- allow_blank: false,
26
- inclusion: {
27
- in: VALID_ROLE_NAME,
28
- message: "Role must be either #{VALID_ROLE_NAME.join(' or ')}"
29
- }
30
- )
31
-
32
- validates(
33
- :account_environment,
34
- allow_blank: false,
35
- inclusion: {
36
- in: VALID_ENV_NAME,
37
- message: "Environment must be either #{VALID_ENV_NAME.join(' or ')}"
38
- }
39
- )
40
-
41
20
  self.table_name = 'OpenStax_Account__c'
42
21
  end
43
22
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '7.4.2'
3
+ VERSION = '7.4.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_salesforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.2
4
+ version: 7.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-03-11 00:00:00.000000000 Z
13
+ date: 2022-03-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails