acts_as_pack_rat 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/acts_as_pack_rat-1.0.7.gem +0 -0
- data/lib/acts_as_pack_rat.rb +4 -0
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +45 -38
|
File without changes
|
data/lib/acts_as_pack_rat.rb
CHANGED
|
@@ -45,8 +45,12 @@ class ActiveRecord::Base
|
|
|
45
45
|
return false if callback(:before_destroy) == false
|
|
46
46
|
if self.respond_to?(:status_id)
|
|
47
47
|
self.status = Status.deleted
|
|
48
|
+
self.updated_at = Time.now if self.respond_to?(:updated_at)
|
|
48
49
|
else
|
|
49
50
|
self.deleted_at = Time.now
|
|
51
|
+
if self.respond_to?(:updated_at)
|
|
52
|
+
self.updated_at = self.deleted_at
|
|
53
|
+
end
|
|
50
54
|
end
|
|
51
55
|
result = self.send(:update_without_callbacks)
|
|
52
56
|
callback(:after_destroy)
|
metadata
CHANGED
|
@@ -1,53 +1,60 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
|
-
rubygems_version: 0.9.2
|
|
3
|
-
specification_version: 1
|
|
4
2
|
name: acts_as_pack_rat
|
|
5
3
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 1.0.
|
|
7
|
-
date: 2008-01-08 00:00:00 -05:00
|
|
8
|
-
summary: acts_as_pack_rat
|
|
9
|
-
require_paths:
|
|
10
|
-
- lib
|
|
11
|
-
- lib
|
|
12
|
-
- lib
|
|
13
|
-
- lib/tasks
|
|
14
|
-
email:
|
|
15
|
-
homepage:
|
|
16
|
-
rubyforge_project: magrathea
|
|
17
|
-
description: "acts_as_pack_rat was developed by: markbates"
|
|
18
|
-
autorequire:
|
|
19
|
-
- acts_as_pack_rat
|
|
20
|
-
- acts_as_pack_rat
|
|
21
|
-
default_executable:
|
|
22
|
-
bindir: bin
|
|
23
|
-
has_rdoc: false
|
|
24
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
|
-
requirements:
|
|
26
|
-
- - ">"
|
|
27
|
-
- !ruby/object:Gem::Version
|
|
28
|
-
version: 0.0.0
|
|
29
|
-
version:
|
|
4
|
+
version: 1.0.7
|
|
30
5
|
platform: ruby
|
|
31
|
-
signing_key:
|
|
32
|
-
cert_chain:
|
|
33
|
-
post_install_message:
|
|
34
6
|
authors:
|
|
35
7
|
- markbates
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
test_files: []
|
|
41
|
-
|
|
42
|
-
rdoc_options: []
|
|
8
|
+
autorequire:
|
|
9
|
+
- acts_as_pack_rat
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
43
12
|
|
|
44
|
-
|
|
13
|
+
date: 2008-04-17 00:00:00 -04:00
|
|
14
|
+
default_executable:
|
|
15
|
+
dependencies: []
|
|
45
16
|
|
|
17
|
+
description: "acts_as_pack_rat was developed by: markbates"
|
|
18
|
+
email:
|
|
46
19
|
executables: []
|
|
47
20
|
|
|
48
21
|
extensions: []
|
|
49
22
|
|
|
23
|
+
extra_rdoc_files: []
|
|
24
|
+
|
|
25
|
+
files:
|
|
26
|
+
- acts_as_pack_rat-1.0.7.gem
|
|
27
|
+
- init.rb
|
|
28
|
+
- lib/acts_as_pack_rat.rb
|
|
29
|
+
- lib/tasks/rubyforge_config.yml
|
|
30
|
+
has_rdoc: false
|
|
31
|
+
homepage:
|
|
32
|
+
post_install_message:
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
- lib
|
|
38
|
+
- lib
|
|
39
|
+
- lib/tasks
|
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
41
|
+
requirements:
|
|
42
|
+
- - ">="
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
version: "0"
|
|
45
|
+
version:
|
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
- - ">="
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: "0"
|
|
51
|
+
version:
|
|
50
52
|
requirements: []
|
|
51
53
|
|
|
52
|
-
|
|
54
|
+
rubyforge_project: magrathea
|
|
55
|
+
rubygems_version: 1.0.1
|
|
56
|
+
signing_key:
|
|
57
|
+
specification_version: 2
|
|
58
|
+
summary: acts_as_pack_rat
|
|
59
|
+
test_files: []
|
|
53
60
|
|