platanus 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Platanus
2
- VERSION = "0.1.3" # 0.2 will come with tests!
2
+ VERSION = "0.1.4" # 0.2 will come with tests!
3
3
  end
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.3
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-02-21 00:00:00.000000000 Z
12
+ date: 2013-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json