pacioli 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,7 +49,7 @@ module Pacioli
49
49
  end
50
50
 
51
51
  def self.for(name)
52
- where(name: name).includes(:transactions)
52
+ where(name: name).includes(transactions: [:journal_entry])
53
53
  end
54
54
  end
55
55
  end
@@ -11,7 +11,7 @@ module Pacioli
11
11
  has_many :creditors, foreign_key: :pacioli_company_id, dependent: :destroy
12
12
 
13
13
  def self.for(company)
14
- Company.where(companyable_type: company.class.name, companyable_id: company.id).includes(:parties, accounts: [transactions: [:journal_entry]]).first
14
+ Company.where(companyable_type: company.class.name, companyable_id: company.id).first
15
15
  end
16
16
 
17
17
  def fetch_account(name)
@@ -1,3 +1,3 @@
1
1
  module Pacioli
2
- VERSION = "0.0.28"
2
+ VERSION = "0.0.29"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 28
9
- version: 0.0.28
8
+ - 29
9
+ version: 0.0.29
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeffrey van Aswegen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2014-08-13 00:00:00 +02:00
17
+ date: 2014-08-14 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency