]> source.dussan.org Git - redmine.git/commitdiff
use "attr_writer" instead of "attr_accessor" for Issue#deleted_attachment_ids
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 20 Sep 2019 15:03:37 +0000 (15:03 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 20 Sep 2019 15:03:37 +0000 (15:03 +0000)
Issue#deleted_attachment_ids is already defined in Issue class.

git-svn-id: http://svn.redmine.org/redmine/trunk@18487 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 507574de771f8ee81a580aad55730a135a482d11..9ac09f44a140507e6d40e064320b2b2619c0a982 100644 (file)
@@ -56,7 +56,7 @@ class Issue < ActiveRecord::Base
 
   DONE_RATIO_OPTIONS = %w(issue_field issue_status)
 
-  attr_accessor :deleted_attachment_ids
+  attr_writer :deleted_attachment_ids
   attr_reader :current_journal
   delegate :notes, :notes=, :private_notes, :private_notes=, :to => :current_journal, :allow_nil => true