eivid 1.0.10 → 1.0.11

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: 5d4c04b8322a6feab4b5a6329e564f1687cf6e71d7db09538101a38233aa9263
4
- data.tar.gz: df5e24bb82fdb4f5e45e9eefc57fdababf0ff623efd29d0f9a32d0c4ab0cf5e1
3
+ metadata.gz: 1c2573ee732c9660e3c9b52490c88794016a64f6ccd7a8c6597bc268b43a80ce
4
+ data.tar.gz: 0f64fccb5e8bfff65937a883fc6c1a35540744379d3dcad007a42e450759dc1c
5
5
  SHA512:
6
- metadata.gz: 970e33e8efb6f0a3d15c2af957fee892edd48b67fac09fa72d295a82ffeef0da6bfbb9497554688a04344d71720873274ea7c11d6a207951556b79f67ec43fb1
7
- data.tar.gz: e955eea3a14e70a13135d3a231307259a82bf0f7b22415551adddec3c7994cf3428b3be422dad2adff2806d90e443ddb247020a62397dd57634e667222f92787
6
+ metadata.gz: bc28ea6273a2bdbe73813ef3010cf38f21923374c30e07aceeb41a0ccb0e23e6f322e28aff970ceea8163ffaa8ce83d84d7b99ba87932d5a509763ad8af580d4
7
+ data.tar.gz: d352dc738178f1cb2f154d2f95fcf0b46c3dce8eff280f6bca9721ff0e58c68f5725e5ff21161d64251ebad8495f2f34db53e3757a3f2cbd7a462fbdab7a8ceb
@@ -6,8 +6,6 @@ module Eivid
6
6
  owner = Owner.find(eivid_owner_id)
7
7
  folder_id = RequestService.create_folder(namespace: Eivid.owner_model, id: owner.id)
8
8
 
9
- # binding.pry
10
-
11
9
  owner.update!(folder_id: folder_id)
12
10
 
13
11
  end
@@ -7,7 +7,7 @@ module Eivid::Concerns::MainApp::Owner
7
7
 
8
8
  include Eivid::Concerns::MainApp::VideoConcerns
9
9
 
10
- after_create :create_eivid_owner
10
+ after_commit :create_eivid_owner, on: :create
11
11
 
12
12
  def create_eivid_owner
13
13
  Eivid::Owner.create(external_id: self.id)
@@ -5,7 +5,7 @@ module Eivid
5
5
 
6
6
  validates :external_id, presence: true, uniqueness: true
7
7
 
8
- after_create :get_folder_id
8
+ after_commit :get_folder_id, unless: :folder_id
9
9
 
10
10
  belongs_to :"#{Eivid.owner_model}", foreign_key: "external_id", optional: true
11
11
 
data/lib/eivid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eivid
2
- VERSION = '1.0.10'
2
+ VERSION = '1.0.11'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eivid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurriaan Schrofer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-24 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails