deb 0.0.4 → 0.0.5

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.
@@ -4,9 +4,9 @@ module Deb
4
4
  has_many :items
5
5
  has_many :accounts, through: :items
6
6
  has_many :debit_items, class_name: "Deb::Item", conditions: {kind: "debit"}
7
- has_many :debit_accounts, through: :debit_items
7
+ has_many :debit_accounts, through: :debit_items, source: :account
8
8
  has_many :credit_items, class_name: "Deb::Item", conditions: {kind: "credit"}
9
- has_many :credit_accounts, through: :credit_items
9
+ has_many :credit_accounts, through: :credit_items, source: :account
10
10
 
11
11
  validate :debit_items_presence
12
12
  validate :credit_items_presence
data/lib/deb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Deb
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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-07-22 00:00:00.000000000 Z
12
+ date: 2013-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: -2892039350782519680
145
+ hash: 4084014879782519641
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  none: false
148
148
  requirements:
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: -2892039350782519680
154
+ hash: 4084014879782519641
155
155
  requirements: []
156
156
  rubyforge_project:
157
157
  rubygems_version: 1.8.25