lockstep_rails 0.3.32 → 0.3.33

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: 94502402bd9d755992cd382ee97ed1fe0af5fe4e2b1a5737f786caffbee8b64c
4
- data.tar.gz: 2ae8039dee7bf011e99aded9bfde1e1298ee3f0c549f757e281f363f85109766
3
+ metadata.gz: 879ebb1093cb339cd5a7e002579d405df4332c4ba1d6f4c889c546a7c33f76d5
4
+ data.tar.gz: c59b6f8da0adb599c6edc413b9abd8fdbbfdb5571582776b38c37227c7c8c2ef
5
5
  SHA512:
6
- metadata.gz: fe36a5929aef41627ca1ea92aff6b13a051703c2be31e1f1e3189dab88cd6ea60378ed3abe3abbada50cbd7600755d2502bac1e3f111b2ecd67e3ccabf2f7805
7
- data.tar.gz: b42cada76579804a7a61e4b98a1603e1ce676ac680dde921cd441167c9504c84d3deca93f13ee1424cf524fe086f684faea2b419e87dc53ac1e4c2f4772bd6a0
6
+ metadata.gz: e31d5fb03f2c9e7c16728663b0b47af8d1bb33578205ea8c0574434e638ec6435f564521ea58ddb52508677c5bd88b52ad7b08aff789239f36496f85f3273f9a
7
+ data.tar.gz: 0cc2161c676a5010f102585cef9f52973846638c4615baa317c85369a194ba55e346e9347b5a2990dfdd5e359c38e0d353ff0b8935f226e3189d81454f176af0
@@ -3,7 +3,7 @@ class Lockstep::Connection < Lockstep::ApiRecord
3
3
  self.id_ref = "company_id"
4
4
  load_schema(Schema::Company)
5
5
 
6
- enum company_type: %w(Customer Vendor)
6
+ enum company_type: %w(Customer Vendor Group)
7
7
 
8
8
  has_many :contacts, class_name: "Lockstep::Contact", included: true
9
9
  belongs_to :created_user, class_name: "Lockstep::User", foreign_key: :created_user_id, primary_key: :user_id
@@ -11,7 +11,7 @@ class Lockstep::Connection < Lockstep::ApiRecord
11
11
 
12
12
  validates :company_name, presence: true
13
13
 
14
- default_scope { where(company_type: %w(Customer Vendor)).or(where(company_type: nil)) }
14
+ default_scope { where(company_type: %w(Customer Vendor Group)).or(where(company_type: nil)) }
15
15
 
16
16
  scope :customers, -> { where(company_type: "Customer") }
17
17
  scope :vendors, -> { where(company_type: "Vendor") }
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = "0.3.32"
2
+ VERSION = "0.3.33"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.32
4
+ version: 0.3.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails