has_accounts 2.0.1 → 2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28cbabaea7786eb02bdcae1f7f043c148f10be49
4
- data.tar.gz: 222d2bf0e7d2d1a754ecda00e135e3393479c5f2
3
+ metadata.gz: d6aeb8e74a2096a1b176b525d637ae332a7e79a8
4
+ data.tar.gz: 22f846f82b69a491ed8420f24ed3fa060b4a51ce
5
5
  SHA512:
6
- metadata.gz: b28f0cf26147ace9c7e5dd584ccd825159f08659aa1a90bdbe31cd3a1496debdd9afc6ebd732299a5f349968e37f145fba98478720a441e1eb9471ecfd0f1b96
7
- data.tar.gz: 580e84f7697c19d549c863c4996428dcd7e9274de51815bc8015c9cbb8a0c1c8a67bd391dcc9cc4fe414684226ee1e5b70e2b615e130318538c6f4681b83e506
6
+ metadata.gz: a87a98861b29fb1adeef3292b03375c3a1e6bfa0002f2fdb24da06a312eeb950cbeb749cf8307c866d61c28242fd27d916e8d87b5183667abf94992c149d7104
7
+ data.tar.gz: f5b67302cd6db63c827fcdb26ba4b34362ee0a8e8aa6c89b30978c189dd56ac6c63c0bec3e155405b888927a5a30280bbac558e40e5c8e39124e3dda4eae0baa
@@ -8,6 +8,8 @@ class BookingTemplate < ActiveRecord::Base
8
8
  belongs_to :credit_account, :foreign_key => 'credit_account_id', :class_name => "Account"
9
9
  attr_accessible :credit_account_id, :credit_account
10
10
 
11
+ has_many :bookings, :through => :line_items
12
+
11
13
  # Default ordering
12
14
  default_scope order(:code)
13
15
 
@@ -1,3 +1,3 @@
1
1
  module HasAccounts
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Hürlimann (CyT)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-26 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails