fix for rails 5.2

Change-Id: I8a5b241e74e39521227de1e96f53235147321d3f
Reviewed-on: https://gerrit.instructure.com/144715
Reviewed-by: Michael Brewer-Davis <mbd@instructure.com>
Tested-by: Jenkins
QA-Review: Dariusz Dzien <ddzien@instructure.com>
Product-Review: Frank Murphy <fmurphy@instructure.com>
This commit is contained in:
Frank Murphy 2018-03-23 16:53:10 -04:00
parent 2cde41d12c
commit 58a97f5e15
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ module Outcomes
if model.context == context
model.outcome_import_id = outcome_import_id
model.save!
elsif model.changed?
elsif model.has_changes_to_save?
raise InvalidDataError, I18n.t(
'Cannot modify outcome from another context: %{changes}; outcome must be modified in %{context}',
changes: model.changes.keys.inspect,