has_accounts 0.10.0 → 0.10.1

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.
@@ -162,8 +162,9 @@ class Booking < ActiveRecord::Base
162
162
  end
163
163
 
164
164
  # Reference
165
- belongs_to :reference, :polymorphic => true
165
+ belongs_to :reference, :polymorphic => true, :touch => true
166
166
  after_save :notify_references
167
+ after_destroy :notify_references
167
168
 
168
169
  # Safety net for form assignments
169
170
  def reference_type=(value)
@@ -1,3 +1,3 @@
1
1
  module HasAccounts
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_accounts
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
5
- prerelease: false
4
+ hash: 53
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 0
10
- version: 0.10.0
9
+ - 1
10
+ version: 0.10.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements: []
75
75
 
76
76
  rubyforge_project:
77
- rubygems_version: 1.3.7
77
+ rubygems_version: 1.5.2
78
78
  signing_key:
79
79
  specification_version: 3
80
80
  summary: HasAccounts provides models for financial accounting.