replace deprecated update_attributes with update
This commit is contained in:
parent
eb45a2bf21
commit
3ffdb424d5
28 changed files with 52 additions and 53 deletions
|
|
@ -45,7 +45,7 @@ class BankTransaction < ApplicationRecord
|
|||
|
||||
transaction do
|
||||
link = FinancialLink.new
|
||||
invoices.each { |i| i.update_attributes! financial_link: link, paid_on: date }
|
||||
invoices.each { |i| i.update!(financial_link: link, paid_on: date) }
|
||||
update_attribute :financial_link, link
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue