Commit c526c52a authored by tmaruyama's avatar tmaruyama
Browse files

Rails3: model: replace deprecated errors.add_to_base at save_issue_with_child_records of Issue

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent ed22f5af
...@@ -634,7 +634,7 @@ class Issue < ActiveRecord::Base ...@@ -634,7 +634,7 @@ class Issue < ActiveRecord::Base
end end
rescue ActiveRecord::StaleObjectError rescue ActiveRecord::StaleObjectError
attachments[:files].each(&:destroy) attachments[:files].each(&:destroy)
errors.add_to_base l(:notice_locking_conflict) errors.add :base, l(:notice_locking_conflict)
raise ActiveRecord::Rollback raise ActiveRecord::Rollback
end end
end end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment