summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-17 08:14:36 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-17 08:14:36 +0000
commit0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d (patch)
treed5d4d2aa395ad5ba2aab27fdd976b73803a4d80b /app/models
parent178449e5290e6c6e733c7c169a49a7d3cfa97cba (diff)
downloadredmine-0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d.tar.gz
redmine-0d4ed123886e931183cd1a0e776bc9bd0bf3ff2d.zip
Code cleanup: RuboCop: Rails/ActiveRecordAliases
update_attributes is deprecated in Rails 6.0 and will be removed in Rails 6.1 (#29914). git-svn-id: http://svn.redmine.org/redmine/trunk@18375 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index efdf711c7..30f3be5ba 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -275,7 +275,7 @@ class Project < ActiveRecord::Base
self.create_time_entry_activity_if_needed(activity_hash)
else
activity = project.time_entry_activities.find_by_id(id.to_i)
- activity.update_attributes(activity_hash) if activity
+ activity.update(activity_hash) if activity
end
end