activerecord_sqlserver_crm 4.2.13 → 4.2.14

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
  SHA1:
3
- metadata.gz: a4dba663e872c9ef4153973c83178423c2250520
4
- data.tar.gz: 835916f3da928a34f7882e175d90f2969a8e29cd
3
+ metadata.gz: a305e8e0f158e0684397490c16894041c4e792bc
4
+ data.tar.gz: 509d7453753815d4c69e32234054c6c30f3553e5
5
5
  SHA512:
6
- metadata.gz: 5e41196b0dbfead53bfb93059479d1f140909b8dadbf7dcf856ec128e4254c96fe916b1a87cb15aee4e944cc5c57c83665e06d72ac2c0b9a0fb670a77867eb95
7
- data.tar.gz: e8ff7d012eaa019fe1e128b55a40895dd89ce4c7046239cbc05c948c8eae8994cc8ffc6012df66866e7950626bf5346cdcaf9ec6f3fc5c6c8d1fec0dc836eae8
6
+ metadata.gz: 5d122989952468c0e3e4dd75e128e2e3e6c25904f3142692638e6449e5ed742b3628838e87c2c814c367afc3bc41d497fcff6845881479c179ae1fd842c7b1ee
7
+ data.tar.gz: 4097d93d12a24e0790935e6cf89f17b9d19c829a59c1cab8e9178a69dd6524972d391614ca95dd01d02dfd99f3b5b6941730ada472dccca46371fb1720f0a737
@@ -12,7 +12,6 @@ module Crm
12
12
  has_many :notes, foreign_key: 'ObjectId'
13
13
 
14
14
  validates :Name, presence: true
15
- validates :InvoiceNumber, presence: true
16
15
  validates :price_list, presence: true
17
16
 
18
17
  validate :contact_xor_account
@@ -3,12 +3,12 @@ module Crm
3
3
  self.table_name = "Annotation"
4
4
  self.primary_key = "AnnotationId"
5
5
 
6
- belongs_to :account, foreign_key: 'OwnerId', crm_key: 'Account_Annotation'
7
- belongs_to :campaign, foreign_key: 'OwnerId', crm_key: 'Campaign_Annotation'
8
- belongs_to :campaign_response, foreign_key: 'OwnerId', crm_key: 'CampaignResponse_Annotation'
9
- belongs_to :case, foreign_key: 'OwnerId', crm_key: 'Case_Annotation'
10
- belongs_to :contact, foreign_key: 'OwnerId', crm_key: 'Contact_Annotation'
11
- belongs_to :invoice, foreign_key: 'OwnerId', crm_key: 'Invoice_Annotation'
6
+ belongs_to :account, foreign_key: 'ObjectId', crm_key: 'objectid_account'
7
+ belongs_to :campaign, foreign_key: 'ObjectId', crm_key: 'objectid_campaign'
8
+ belongs_to :campaign_response, foreign_key: 'ObjectId', crm_key: 'objectid_campaignresponse'
9
+ belongs_to :case, foreign_key: 'ObjectId', crm_key: 'objectid_case'
10
+ belongs_to :contact, foreign_key: 'ObjectId', crm_key: 'objectid_contact'
11
+ belongs_to :invoice, foreign_key: 'ObjectId', crm_key: 'objectid_invoice'
12
12
 
13
13
  validates :Subject, presence: true
14
14
 
@@ -1,3 +1,3 @@
1
1
  module ActiverecordSqlserverCrm
2
- VERSION = "4.2.13"
2
+ VERSION = "4.2.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_sqlserver_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.13
4
+ version: 4.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rolf Lawrenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2016-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails