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 +4 -4
- data/app/models/lockstep/connection.rb +2 -2
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 879ebb1093cb339cd5a7e002579d405df4332c4ba1d6f4c889c546a7c33f76d5
|
4
|
+
data.tar.gz: c59b6f8da0adb599c6edc413b9abd8fdbbfdb5571582776b38c37227c7c8c2ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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") }
|
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.
|
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-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|