activehistory 0.2.1 → 0.2.2

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: 738938e4c7303437ed611ad74d5b48736f5590a6
4
- data.tar.gz: 5e0a178f69fd5cff99025256a819bccb30e35445
3
+ metadata.gz: d963f534f27dfefd26d29a44571a997f74abc8b6
4
+ data.tar.gz: 0cda709c598c17b4fa85d845769ce06eaf0a4c2c
5
5
  SHA512:
6
- metadata.gz: aa67c5b5797e87d86122853469a87b25af576baed17e7672cb81290ee68707038d3368afc09a9b7bcefc2be43605a3ac206fedbb9626dd21d5c46c5f66345849
7
- data.tar.gz: f535f87bceff3329c4850d584c78201decc0ba7af419fcd9e3f288d1f9d84ea9607b39eaaf13fb7765970d1e41435d2c077918e3898d27a7f5763f3c6bcb9359
6
+ metadata.gz: a82a9e4858e82570938b99cb6a1b696c27b163c578480d9f312cb4c33b6e09fb298768ccfeb0ab0c2f87540fab4c2a6169b6d83ae0a037a69f9f3251aadfc472
7
+ data.tar.gz: 269c594656f0bc6110c40a86ed8db03ce1afadadad8dd9a0d8f20f1e22e80327904f42385cd9cf601e546983fc9c51a9db1301383f01d7d24ab3dcb343a9d225
@@ -321,7 +321,7 @@ module ActiveRecord
321
321
 
322
322
  if dependent == :delete_all
323
323
 
324
- else
324
+ elsif !owner.id.nil?
325
325
  removed_ids = self.scope.pluck(:id)
326
326
 
327
327
  action = owner.activehistory_event.action_for(self.reflection.active_record, owner.id, {
@@ -37,6 +37,7 @@ class ActiveHistory::Event
37
37
  end
38
38
 
39
39
  def action_for(type, id, new_options=nil)
40
+ byebug if $debugging
40
41
  type = type.base_class.model_name.name if !type.is_a?(String)
41
42
  action = @actions.find { |a| a.subject_type.to_s == type.to_s && a.subject_id.to_s == id.to_s }
42
43
 
@@ -1,3 +1,3 @@
1
1
  module ActiveHistory
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activehistory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2017-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  version: '0'
291
291
  requirements: []
292
292
  rubyforge_project:
293
- rubygems_version: 2.5.1
293
+ rubygems_version: 2.6.8
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: Track changes to ActiveRecord models