mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
use "attr_writer" instead of "attr_accessor" for WikiPage#deleted_attachment_ids
WikiPage#deleted_attachment_ids is already defined in this class. git-svn-id: http://svn.redmine.org/redmine/trunk@18617 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1c0b6075ee
commit
6b5991b34e
@ -493,10 +493,6 @@ Lint/DeprecatedClassMethods:
|
|||||||
- 'test/unit/attachment_test.rb'
|
- 'test/unit/attachment_test.rb'
|
||||||
- 'test/unit/issue_import_test.rb'
|
- 'test/unit/issue_import_test.rb'
|
||||||
|
|
||||||
Lint/DuplicateMethods:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/wiki_page.rb'
|
|
||||||
|
|
||||||
Lint/EmptyWhen:
|
Lint/EmptyWhen:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/issues_controller.rb'
|
- 'app/controllers/issues_controller.rb'
|
||||||
|
|||||||
@ -41,7 +41,8 @@ class WikiPage < ActiveRecord::Base
|
|||||||
:permission => :view_wiki_pages,
|
:permission => :view_wiki_pages,
|
||||||
:project_key => "#{Wiki.table_name}.project_id"
|
:project_key => "#{Wiki.table_name}.project_id"
|
||||||
|
|
||||||
attr_accessor :redirect_existing_links, :deleted_attachment_ids
|
attr_accessor :redirect_existing_links
|
||||||
|
attr_writer :deleted_attachment_ids
|
||||||
|
|
||||||
validates_presence_of :title
|
validates_presence_of :title
|
||||||
validates_format_of :title, :with => /\A[^,\.\/\?\;\|\s]*\z/
|
validates_format_of :title, :with => /\A[^,\.\/\?\;\|\s]*\z/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user