paper_trail 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/paper_trail/has_paper_trail.rb +1 -1
- data/lib/paper_trail/version_number.rb +1 -1
- metadata +18 -18
data/README.md
CHANGED
@@ -50,7 +50,7 @@ module PaperTrail
|
|
50
50
|
has_many self.versions_association_name,
|
51
51
|
:class_name => version_class_name,
|
52
52
|
:as => :item,
|
53
|
-
:order => "created_at ASC, #{self.primary_key} ASC"
|
53
|
+
:order => "created_at ASC, #{self.version_class_name.constantize.primary_key} ASC"
|
54
54
|
|
55
55
|
after_create :record_create if !options[:on] || options[:on].include?(:create)
|
56
56
|
before_update :record_update if !options[:on] || options[:on].include?(:update)
|
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:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 2.3.
|
9
|
+
- 1
|
10
|
+
version: 2.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andy Stewart
|
@@ -19,8 +19,9 @@ date: 2011-08-22 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
name: rails
|
22
23
|
prerelease: false
|
23
|
-
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
25
|
none: false
|
25
26
|
requirements:
|
26
27
|
- - ~>
|
@@ -29,12 +30,12 @@ dependencies:
|
|
29
30
|
segments:
|
30
31
|
- 3
|
31
32
|
version: "3"
|
32
|
-
requirement: *id001
|
33
|
-
name: rails
|
34
33
|
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
+
name: shoulda
|
36
37
|
prerelease: false
|
37
|
-
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
39
|
none: false
|
39
40
|
requirements:
|
40
41
|
- - "="
|
@@ -45,12 +46,12 @@ dependencies:
|
|
45
46
|
- 10
|
46
47
|
- 3
|
47
48
|
version: 2.10.3
|
48
|
-
requirement: *id002
|
49
|
-
name: shoulda
|
50
49
|
type: :development
|
50
|
+
version_requirements: *id002
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
|
+
name: sqlite3-ruby
|
52
53
|
prerelease: false
|
53
|
-
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
55
|
none: false
|
55
56
|
requirements:
|
56
57
|
- - ~>
|
@@ -60,12 +61,12 @@ dependencies:
|
|
60
61
|
- 1
|
61
62
|
- 2
|
62
63
|
version: "1.2"
|
63
|
-
requirement: *id003
|
64
|
-
name: sqlite3-ruby
|
65
64
|
type: :development
|
65
|
+
version_requirements: *id003
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
+
name: capybara
|
67
68
|
prerelease: false
|
68
|
-
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
70
|
none: false
|
70
71
|
requirements:
|
71
72
|
- - ">="
|
@@ -76,12 +77,12 @@ dependencies:
|
|
76
77
|
- 4
|
77
78
|
- 0
|
78
79
|
version: 0.4.0
|
79
|
-
requirement: *id004
|
80
|
-
name: capybara
|
81
80
|
type: :development
|
81
|
+
version_requirements: *id004
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
+
name: turn
|
83
84
|
prerelease: false
|
84
|
-
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
85
86
|
none: false
|
86
87
|
requirements:
|
87
88
|
- - ">="
|
@@ -90,9 +91,8 @@ dependencies:
|
|
90
91
|
segments:
|
91
92
|
- 0
|
92
93
|
version: "0"
|
93
|
-
requirement: *id005
|
94
|
-
name: turn
|
95
94
|
type: :development
|
95
|
+
version_requirements: *id005
|
96
96
|
description: Track changes to your models' data. Good for auditing or versioning.
|
97
97
|
email: boss@airbladesoftware.com
|
98
98
|
executables: []
|