From fb87898811ccf8355c839eea2070a19109dd155f Mon Sep 17 00:00:00 2001 From: d-m-u Date: Wed, 24 Jul 2019 07:07:37 -0400 Subject: [PATCH] cbr is a hash, so we need the merge --- app/models/chargeback_rate_detail_measure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/chargeback_rate_detail_measure.rb b/app/models/chargeback_rate_detail_measure.rb index ece0a238c5a..61a9832d509 100644 --- a/app/models/chargeback_rate_detail_measure.rb +++ b/app/models/chargeback_rate_detail_measure.rb @@ -36,7 +36,7 @@ def self.seed fixture_mtime = File.mtime(fixture_file_measure).utc if fixture_mtime > rec.created_at _log.info("Updating [#{cbr[:name]}] with units=[#{cbr[:units]}]") - rec.update!(cbr, :created_at => fixture_mtime) + rec.update!(cbr.merge(:created_at => fixture_mtime)) end end end