activerecord_sqlserver_crm 5.0.0 → 5.0.1

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: fb4cd782e903ee4cd337f04794c441e3dde58bce
4
- data.tar.gz: 3f7885b8975e84872bb1bfc91460dfd84d8b0745
3
+ metadata.gz: 02cdadd055841f9e717419e7eb010d16ee663c65
4
+ data.tar.gz: 1a8eaf661425a3e53ed502fbd05f8f99d5d83f49
5
5
  SHA512:
6
- metadata.gz: 6b197031744c98bf4e907864225dcebc038a636a492630db3b72913f18d4349cb28e895af60b4023980a9e154044eef9e0861c65f4b41912b884ac8a76cfe0af
7
- data.tar.gz: 423356df1139ead9d10ad8e93af3b3c624767e50d8d8daff568739cf99a3d33328c819a4e52af2c7a1110b6c4e526fb9cf65410cb6f28c4c576257b8816472d4
6
+ metadata.gz: 43d79584870a5a4cd63f776330080f2cb3c607df7bda0209ad9b5bb46569227cc522d0a780f3813f4dccb180003eb4b41b00bf58933d7edc76bde15d166e1829
7
+ data.tar.gz: a31cffa7698f1c813a2c19681017a3a46d794b16abf27c9ee5bb95c5f39d1d1cf80ffbcb2582710f99f9a54c2831f6941a29e91461bd5abd41dcf3f22fc81349
@@ -0,0 +1,3 @@
1
+ class ApplicationRecord < ActiveRecord::Base
2
+ self.abstract_class = true
3
+ end
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Account < ActiveRecord::Base
2
+ class Account < ::ApplicationRecord
3
3
  self.table_name = "Account"
4
4
  self.primary_key = "AccountId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Campaign < ActiveRecord::Base
2
+ class Campaign < ::ApplicationRecord
3
3
  self.table_name = "Campaign"
4
4
  self.primary_key = "CampaignId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class CampaignResponse < ActiveRecord::Base
2
+ class CampaignResponse < ::ApplicationRecord
3
3
  self.table_name = "CampaignResponse"
4
4
  self.primary_key = "ActivityId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Case < ActiveRecord::Base
2
+ class Case < ::ApplicationRecord
3
3
  self.table_name = "Incident"
4
4
  self.primary_key = "IncidentId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Contact < ActiveRecord::Base
2
+ class Contact < ::ApplicationRecord
3
3
  self.table_name = "Contact"
4
4
  self.primary_key = "ContactId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Currency < ActiveRecord::Base
2
+ class Currency < ::ApplicationRecord
3
3
  self.table_name = "TransactionCurrency"
4
4
  self.primary_key = "TransactionCurrencyId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Invoice < ActiveRecord::Base
2
+ class Invoice < ::ApplicationRecord
3
3
  self.table_name = "Invoice"
4
4
  self.primary_key = "InvoiceId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class InvoiceProduct < ActiveRecord::Base
2
+ class InvoiceProduct < ::ApplicationRecord
3
3
  self.table_name = "InvoiceDetail"
4
4
  self.primary_key = "InvoiceDetailId"
5
5
 
@@ -2,7 +2,7 @@
2
2
  # To get around this issue we create a Note type for each Entity type. Each EntityNote contains only a single
3
3
  # entry for the ObjectId.
4
4
  module Crm
5
- class Note < ActiveRecord::Base
5
+ class Note < ::ApplicationRecord
6
6
  self.table_name = "Annotation"
7
7
  self.primary_key = "AnnotationId"
8
8
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Opportunity < ActiveRecord::Base
2
+ class Opportunity < ::ApplicationRecord
3
3
  self.table_name = "Opportunity"
4
4
  self.primary_key = "OpportunityId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class PriceList < ActiveRecord::Base
2
+ class PriceList < ::ApplicationRecord
3
3
  self.table_name = "PriceLevel"
4
4
  self.primary_key = "PriceLevelId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class PriceListItem < ActiveRecord::Base
2
+ class PriceListItem < ::ApplicationRecord
3
3
  self.table_name = "ProductPriceLevel"
4
4
  self.primary_key = "ProductPriceLevelId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Product < ActiveRecord::Base
2
+ class Product < ::ApplicationRecord
3
3
  self.table_name = "Product"
4
4
  self.primary_key = "ProductId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class Uom < ActiveRecord::Base
2
+ class Uom < ::ApplicationRecord
3
3
  self.table_name = "UoM"
4
4
  self.primary_key = "UoMId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class UomSchedule < ActiveRecord::Base
2
+ class UomSchedule < ::ApplicationRecord
3
3
  self.table_name = "UoMSchedule"
4
4
  self.primary_key = "UoMScheduleId"
5
5
 
@@ -1,5 +1,5 @@
1
1
  module Crm
2
- class User < ActiveRecord::Base
2
+ class User < ::ApplicationRecord
3
3
  self.table_name = "SystemUser"
4
4
  self.primary_key = "SystemUserId"
5
5
 
@@ -21,7 +21,7 @@ module ActiveRecordExtension
21
21
  end
22
22
  has_errors = errors.present?
23
23
  if has_errors
24
- raise_record_not_destroyed
24
+ _raise_record_not_destroyed
25
25
  end
26
26
  !has_errors
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module ActiverecordSqlserverCrm
2
- VERSION = "5.0.0"
2
+ VERSION = "5.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_sqlserver_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rolf Lawrenz
@@ -135,6 +135,7 @@ files:
135
135
  - MIT-LICENSE
136
136
  - README.rdoc
137
137
  - Rakefile
138
+ - app/models/application_record.rb
138
139
  - app/models/crm/account.rb
139
140
  - app/models/crm/account_note.rb
140
141
  - app/models/crm/campaign.rb