app/models/plutus/equity.rb in plutus-0.7.4 vs app/models/plutus/equity.rb in plutus-0.8.0

- old
+ new

@@ -37,10 +37,10 @@ # => #<BigDecimal:1030fcc98,'0.82875E5',8(20)> # # @return [BigDecimal] The decimal value balance def self.balance accounts_balance = BigDecimal.new('0') - accounts = self.find(:all) + accounts = self.all accounts.each do |equity| unless equity.contra accounts_balance += equity.balance else accounts_balance -= equity.balance