app/models/account.rb in has_accounts-0.9.1 vs app/models/account.rb in has_accounts-0.9.2

- old
+ new

@@ -51,10 +51,10 @@ # Calculations def turnover(selector = Date.today, inclusive = true) equality = "=" if inclusive - if selector.respond_to(:first) and selector.respond_to(:last) + if selector.respond_to?(:first) and selector.respond_to?(:last) if selector.first.is_a? Booking if selector.first.value_date == selector.last.value_date condition = ["date(value_date) = :value_date AND id >#{equality} :first_id AND id <#{equality} :last_id", { :value_date => selector.first.value_date, :first_id => selector.first.id,