From 1c0b6075ee003b87190671816b1f06b227f2d9d5 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 7 Oct 2019 11:45:11 +0000 Subject: use "attr_writer" instead of "attr_accessor" for QueryColumn#sortable QueryColumn#sortable is already defined in this class. git-svn-id: http://svn.redmine.org/redmine/trunk@18616 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/query.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/models/query.rb') diff --git a/app/models/query.rb b/app/models/query.rb index bd2b0c5c1..3b37a8dd0 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -20,7 +20,8 @@ require 'redmine/sort_criteria' class QueryColumn - attr_accessor :name, :sortable, :groupable, :totalable, :default_order + attr_accessor :name, :groupable, :totalable, :default_order + attr_writer :sortable include Redmine::I18n def initialize(name, options={}) -- cgit v1.2.3