diff options
author | Go MAEDA <maeda@farend.jp> | 2023-03-24 09:34:40 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-03-24 09:34:40 +0000 |
commit | fe71cb5bbea6504d643d4e33ca7148191ee21952 (patch) | |
tree | ab7942e0d087dca92cf42ee5e2b27acfeec1c45e /app | |
parent | 2b00670e4d204db24b9e38dd5e7a8d72aa7470bc (diff) | |
download | redmine-fe71cb5bbea6504d643d4e33ca7148191ee21952.tar.gz redmine-fe71cb5bbea6504d643d4e33ca7148191ee21952.zip |
Fix RuboCop offense Lint/MissingSuper (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22147 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/query.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index bd670205b..4a0aeb4fd 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -126,10 +126,13 @@ end class QueryCustomFieldColumn < QueryColumn def initialize(custom_field, options={}) - self.name = "cf_#{custom_field.id}".to_sym - self.sortable = custom_field.order_statement || false - self.totalable = options.key?(:totalable) ? !!options[:totalable] : custom_field.totalable? - @inline = custom_field.full_width_layout? ? false : true + name = "cf_#{custom_field.id}".to_sym + super( + name, + :sortable => custom_field.order_statement || false, + :totalable => options.key?(:totalable) ? !!options[:totalable] : custom_field.totalable?, + :inline => custom_field.full_width_layout? ? false : true + ) @cf = custom_field end |