paper_trail 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -539,6 +539,8 @@ Many thanks to:
539
539
  * [conickal](http://github.com/conickal)
540
540
  * [Thibaud Guillaume-Gentil](http://github.com/thibaudgg)
541
541
  * Danny Trelogan
542
+ * [Mikl Kurkov](http://github.com/mkurkov)
543
+ * [Franco Catena](https://github.com/francocatena)
542
544
 
543
545
 
544
546
  ## Inspirations
@@ -107,9 +107,10 @@ module PaperTrail
107
107
 
108
108
  def record_destroy
109
109
  if switched_on? and not new_record?
110
- versions.create merge_metadata(:event => 'destroy',
111
- :object => object_to_string(item_before_change),
112
- :whodunnit => PaperTrail.whodunnit)
110
+ Version.create merge_metadata(:item => self,
111
+ :event => 'destroy',
112
+ :object => object_to_string(item_before_change),
113
+ :whodunnit => PaperTrail.whodunnit)
113
114
  end
114
115
  end
115
116
 
@@ -1,3 +1,3 @@
1
1
  module PaperTrail
2
- VERSION = '1.6.3'
2
+ VERSION = '1.6.4'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paper_trail
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 3
10
- version: 1.6.3
9
+ - 4
10
+ version: 1.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Stewart
@@ -15,13 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-28 00:00:00 +01:00
18
+ date: 2010-11-19 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: bundler
23
+ type: :development
23
24
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - ~>
@@ -31,12 +32,12 @@ dependencies:
31
32
  - 1
32
33
  - 0
33
34
  version: "1.0"
34
- type: :development
35
- version_requirements: *id001
35
+ requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
+ type: :development
38
39
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
41
  none: false
41
42
  requirements:
42
43
  - - "="
@@ -47,12 +48,12 @@ dependencies:
47
48
  - 8
48
49
  - 7
49
50
  version: 0.8.7
50
- type: :development
51
- version_requirements: *id002
51
+ requirement: *id002
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: shoulda
54
+ type: :development
54
55
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
57
  none: false
57
58
  requirements:
58
59
  - - "="
@@ -63,12 +64,12 @@ dependencies:
63
64
  - 10
64
65
  - 3
65
66
  version: 2.10.3
66
- type: :development
67
- version_requirements: *id003
67
+ requirement: *id003
68
68
  - !ruby/object:Gem::Dependency
69
69
  name: activesupport
70
+ type: :development
70
71
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
+ version_requirements: &id004 !ruby/object:Gem::Requirement
72
73
  none: false
73
74
  requirements:
74
75
  - - ~>
@@ -78,12 +79,12 @@ dependencies:
78
79
  - 2
79
80
  - 3
80
81
  version: "2.3"
81
- type: :development
82
- version_requirements: *id004
82
+ requirement: *id004
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sqlite3-ruby
85
+ type: :development
85
86
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
+ version_requirements: &id005 !ruby/object:Gem::Requirement
87
88
  none: false
88
89
  requirements:
89
90
  - - ~>
@@ -93,12 +94,12 @@ dependencies:
93
94
  - 1
94
95
  - 2
95
96
  version: "1.2"
96
- type: :development
97
- version_requirements: *id005
97
+ requirement: *id005
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: activerecord
100
+ type: :runtime
100
101
  prerelease: false
101
- requirement: &id006 !ruby/object:Gem::Requirement
102
+ version_requirements: &id006 !ruby/object:Gem::Requirement
102
103
  none: false
103
104
  requirements:
104
105
  - - ">="
@@ -108,12 +109,12 @@ dependencies:
108
109
  - 2
109
110
  - 3
110
111
  version: "2.3"
111
- type: :runtime
112
- version_requirements: *id006
112
+ requirement: *id006
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: actionpack
115
+ type: :runtime
115
116
  prerelease: false
116
- requirement: &id007 !ruby/object:Gem::Requirement
117
+ version_requirements: &id007 !ruby/object:Gem::Requirement
117
118
  none: false
118
119
  requirements:
119
120
  - - ">="
@@ -123,8 +124,7 @@ dependencies:
123
124
  - 2
124
125
  - 3
125
126
  version: "2.3"
126
- type: :runtime
127
- version_requirements: *id007
127
+ requirement: *id007
128
128
  description: Track changes to your models' data. Good for auditing or versioning.
129
129
  email: boss@airbladesoftware.com
130
130
  executables: []