app/models/plutus/account.rb in plutus-0.15 vs app/models/plutus/account.rb in plutus-0.16

- old
+ new

@@ -135,10 +135,10 @@ # @return [BigDecimal] The decimal value balance def self.balance(options={}) if self.new.class == Plutus::Account raise(NoMethodError, "undefined method 'balance'") else - accounts_balance = BigDecimal.new('0') + accounts_balance = BigDecimal('0') accounts = self.all accounts.each do |account| if account.contra accounts_balance -= account.balance(options) else