platanus 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/platanus/activable.rb +2 -0
- data/lib/platanus/version.rb +1 -1
- metadata +2 -2
data/lib/platanus/activable.rb
CHANGED
@@ -61,6 +61,7 @@ module Platanus
|
|
61
61
|
def remove!
|
62
62
|
self.transaction do
|
63
63
|
run_callbacks :remove do
|
64
|
+
notify_observers :before_remove
|
64
65
|
|
65
66
|
# Retrieve dependant properties and remove them.
|
66
67
|
self.class.reflect_on_all_associations.select do |assoc|
|
@@ -72,6 +73,7 @@ module Platanus
|
|
72
73
|
|
73
74
|
# Use update column to prevent update callbacks from being ran.
|
74
75
|
self.update_column(:removed_at, DateTime.now)
|
76
|
+
notify_observers :after_remove
|
75
77
|
end
|
76
78
|
end
|
77
79
|
end
|
data/lib/platanus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|