diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-06 22:49:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-06 22:49:02 +0000 |
commit | caa2ce3417de2995ef3a7096ac2e9072f4acb315 (patch) | |
tree | faef846e9b9aa0db8c8e44f1574fe6b3a10ca47e /app/models/issue.rb | |
parent | a09da046ec12f00caf3b8b84cb68112e36391ba2 (diff) | |
download | redmine-caa2ce3417de2995ef3a7096ac2e9072f4acb315.tar.gz redmine-caa2ce3417de2995ef3a7096ac2e9072f4acb315.zip |
Rails3: model: replace deprecated errors.add_to_base at save_issue_with_child_records of Issue
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7589 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 82e0e35ed..c36fa788e 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -634,7 +634,7 @@ class Issue < ActiveRecord::Base end rescue ActiveRecord::StaleObjectError attachments[:files].each(&:destroy) - errors.add_to_base l(:notice_locking_conflict) + errors.add :base, l(:notice_locking_conflict) raise ActiveRecord::Rollback end end |