has_accounts 0.9.1 → 0.9.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.
@@ -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", {
@@ -1,3 +1,3 @@
1
1
  module HasAccounts
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
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: 57
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 1
10
- version: 0.9.1
9
+ - 2
10
+ version: 0.9.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"