has_accounts 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/account.rb +1 -1
- data/lib/has_accounts/version.rb +1 -1
- metadata +3 -3
data/app/models/account.rb
CHANGED
@@ -53,7 +53,7 @@ class Account < ActiveRecord::Base
|
|
53
53
|
def turnover(selector = Date.today, inclusive = true)
|
54
54
|
equality = "=" if inclusive
|
55
55
|
|
56
|
-
if selector.respond_to(:first) and selector.respond_to(:last)
|
56
|
+
if selector.respond_to?(:first) and selector.respond_to?(:last)
|
57
57
|
if selector.first.is_a? Booking
|
58
58
|
if selector.first.value_date == selector.last.value_date
|
59
59
|
condition = ["date(value_date) = :value_date AND id >#{equality} :first_id AND id <#{equality} :last_id", {
|
data/lib/has_accounts/version.rb
CHANGED
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:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 2
|
10
|
+
version: 0.9.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|